Fixed plugin loaders trying to load plugins they aren't able to load

closes #2125

This is an API break for things implementing the PluginLoader interface.
This commit is contained in:
Dylan K. Taylor
2018-04-09 15:54:20 +01:00
parent 476ac39988
commit 5f52e00213
5 changed files with 23 additions and 1 deletions

View File

@ -210,6 +210,9 @@ class PluginManager{
continue;
}
$file = $directory . $file;
if(!$loader->canLoadPlugin($file)){
continue;
}
try{
$description = $loader->getPluginDescription($file);
if($description instanceof PluginDescription){