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:
parent
8a275336a1
commit
d6de4a0036
30 changed files with 750 additions and 683 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue