From 5caee06c44eccc1a1b6aad5dec7731caa5535ebf Mon Sep 17 00:00:00 2001 From: Beau Simensen Date: Mon, 16 Dec 2013 09:21:00 -0600 Subject: [PATCH] Make PluginManager::loadRepository public --- src/Composer/Plugin/PluginManager.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Composer/Plugin/PluginManager.php b/src/Composer/Plugin/PluginManager.php index 91c28fbde..de4257e6a 100644 --- a/src/Composer/Plugin/PluginManager.php +++ b/src/Composer/Plugin/PluginManager.php @@ -93,7 +93,16 @@ class PluginManager return $this->plugins; } - protected function loadRepository(RepositoryInterface $repo) + /** + * Load all plugins and installers from a repository + * + * Note that plugins in the specified repository that rely on events that + * have fired prior to loading will be missed. This means you likely want to + * call this method as early as possible. + * + * @param RepositoryInterface $repo Repository to scan for plugins to install + */ + public function loadRepository(RepositoryInterface $repo) { foreach ($repo->getPackages() as $package) { if ($package instanceof AliasPackage) {