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

@ -53,6 +53,15 @@ interface PluginLoader{
*/
public function getPluginFilters() : string;
/**
* Returns whether this PluginLoader can load the plugin in the given path.
*
* @param string $path
*
* @return bool
*/
public function canLoadPlugin(string $path) : bool;
/**
* @param Plugin $plugin
*