diff --git a/src/LinusShops/Prophet/PluginRepository.php b/src/LinusShops/Prophet/PluginRepository.php index 145ee66..892e6ed 100644 --- a/src/LinusShops/Prophet/PluginRepository.php +++ b/src/LinusShops/Prophet/PluginRepository.php @@ -27,13 +27,13 @@ public static function load() $plugin = require($path); $plugin->load(); $plugin->register(); - self::$plugins[$name] = $plugin; + self::$plugins[strtolower($name)] = $plugin; } } } } - public function get($name) { - return self::$plugins[$name]; + public static function get($name) { + return self::$plugins[strtolower($name)]; } }