1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Rename Package interfaces to reduce BC issues

This commit is contained in:
Jordi Boggiano 2012-08-23 15:52:40 +02:00
parent 8a275336a1
commit d6de4a0036
30 changed files with 750 additions and 683 deletions

View file

@ -36,7 +36,7 @@ class ValidatingArrayLoader implements LoaderInterface
$this->versionParser = $parser;
}
public function load(array $config)
public function load(array $config, $class = 'Composer\Package\CompletePackage')
{
$this->config = $config;
@ -168,7 +168,7 @@ class ValidatingArrayLoader implements LoaderInterface
throw new \Exception(implode("\n", $this->errors));
}
$package = $this->loader->load($this->config);
$package = $this->loader->load($this->config, $class);
$this->errors = array();
$this->config = null;