static plugin manager methods

This commit is contained in:
Steffen Schröder 2014-04-30 03:46:42 +02:00
parent 60458494e0
commit 4e6db622b2

View File

@ -92,8 +92,8 @@ class PluginManager {
* @param string $pluginClass
* @return bool
*/
public function isPluginClass($pluginClass) {
$pluginClass = $this->getPluginClass($pluginClass);
public static function isPluginClass($pluginClass) {
$pluginClass = self::getPluginClass($pluginClass);
if (!in_array(Plugin::PLUGIN_INTERFACE, class_implements($pluginClass))) {
return false;
}
@ -372,7 +372,7 @@ class PluginManager {
* @param mixed $pluginClass
* @return string
*/
private function getPluginClass($pluginClass) {
private static function getPluginClass($pluginClass) {
if (is_object($pluginClass)) {
$pluginClass = get_class($pluginClass);
}