addPackage needs to trigger initialization too
parent
575e520931
commit
05d527446b
|
@ -30,6 +30,9 @@ class ArrayRepository implements RepositoryInterface
|
|||
*/
|
||||
public function addPackage(PackageInterface $package)
|
||||
{
|
||||
if (null === $this->packages) {
|
||||
$this->initialize();
|
||||
}
|
||||
$package->setRepository($this);
|
||||
$this->packages[] = $package;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue