static plugin manager methods
This commit is contained in:
parent
60458494e0
commit
4e6db622b2
@ -92,8 +92,8 @@ class PluginManager {
|
|||||||
* @param string $pluginClass
|
* @param string $pluginClass
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isPluginClass($pluginClass) {
|
public static function isPluginClass($pluginClass) {
|
||||||
$pluginClass = $this->getPluginClass($pluginClass);
|
$pluginClass = self::getPluginClass($pluginClass);
|
||||||
if (!in_array(Plugin::PLUGIN_INTERFACE, class_implements($pluginClass))) {
|
if (!in_array(Plugin::PLUGIN_INTERFACE, class_implements($pluginClass))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -372,7 +372,7 @@ class PluginManager {
|
|||||||
* @param mixed $pluginClass
|
* @param mixed $pluginClass
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function getPluginClass($pluginClass) {
|
private static function getPluginClass($pluginClass) {
|
||||||
if (is_object($pluginClass)) {
|
if (is_object($pluginClass)) {
|
||||||
$pluginClass = get_class($pluginClass);
|
$pluginClass = get_class($pluginClass);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user