Эх сурвалжийг харах

add removePackage() to RepositoryInterface

Rob Bast 6 жил өмнө
parent
commit
cfb0d33c45

+ 7 - 0
src/Composer/Repository/RepositoryInterface.php

@@ -71,4 +71,11 @@ interface RepositoryInterface extends \Countable
      * @return array[] an array of array('name' => '...', 'description' => '...')
      */
     public function search($query, $mode = 0);
+
+    /**
+     * Removes a package from the registered packages list.
+     *
+     * @param PackageInterface $package
+     */
+    public function removePackage(PackageInterface $package);
 }