コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function removePackage(PackageInterface $package)
 {
     $packageId = $package->getUniqueName();
     foreach ($this->getPackages() as $key => $repoPackage) {
         if ($packageId === $repoPackage->getUniqueName()) {
             array_splice($this->packages, $key, 1);
             return;
         }
     }
 }