diff options
author | diosmosis <benaka@piwik.pro> | 2015-04-05 09:11:54 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-04-05 09:11:54 +0300 |
commit | 3661b2c763438e4d64420d4b9c12d54f838469bb (patch) | |
tree | eadc71121603d8617b77f68a77730dd45b050b9e /core/EventDispatcher.php | |
parent | 7055913662c471c0ef3157926bca77e923d83f35 (diff) |
Adding Plugin Manager to DI container.
Diffstat (limited to 'core/EventDispatcher.php')
-rw-r--r-- | core/EventDispatcher.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/EventDispatcher.php b/core/EventDispatcher.php index bdec8c1c7c..87e8ca59c2 100644 --- a/core/EventDispatcher.php +++ b/core/EventDispatcher.php @@ -213,8 +213,9 @@ class EventDispatcher extends Singleton private function getPluginManager() { if ($this->pluginManager === null) { - $this->pluginManager = Plugin\Manager::getInstance(); + return Plugin\Manager::getInstance(); // caching the var breaks DI for now since only Plugin\Manager is in the container. + } else { + return $this->pluginManager; } - return $this->pluginManager; } }
\ No newline at end of file |