1
0
Fork 0

Make PluginManager::loadRepository public

pull/2510/head
Beau Simensen 2013-12-16 09:21:00 -06:00
parent b63634396b
commit 5caee06c44
1 changed files with 10 additions and 1 deletions

View File

@ -93,7 +93,16 @@ class PluginManager
return $this->plugins; 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) { foreach ($repo->getPackages() as $package) {
if ($package instanceof AliasPackage) { if ($package instanceof AliasPackage) {