diff options
author | diosmosis <benaka@piwik.pro> | 2015-05-21 16:37:08 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-05-21 18:32:41 +0300 |
commit | b7546e0d6bfec631e17766045d907ebfb2dfdbd4 (patch) | |
tree | 76b93957377b78cdd1c000cdf9988718fd4ef777 /core/EventDispatcher.php | |
parent | 6866c3aa5924e8a9d6760a17eff4323216bd7da4 (diff) |
Remove EventManager::getPluginManager() method, it is no longer needed since the Plugin\Manager is provided through DI.
Diffstat (limited to 'core/EventDispatcher.php')
-rw-r--r-- | core/EventDispatcher.php | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/core/EventDispatcher.php b/core/EventDispatcher.php index 55b83e4d1d..d9c6b0374c 100644 --- a/core/EventDispatcher.php +++ b/core/EventDispatcher.php @@ -92,7 +92,7 @@ class EventDispatcher $this->pendingEvents[] = array($eventName, $params); } - $manager = $this->getPluginManager(); + $manager = $this->pluginManager; if (empty($plugins)) { $plugins = $manager->getPluginsLoadedAndActivated(); @@ -201,18 +201,4 @@ class EventDispatcher return array($pluginFunction, $callbackGroup); } - - /** - * Returns the Plugin\Manager instance used by the event dispatcher. - * - * @return Plugin\Manager - */ - private function getPluginManager() - { - if ($this->pluginManager === null) { - return Plugin\Manager::getInstance(); // caching the var breaks DI for now since only Plugin\Manager is in the container. - } else { - return $this->pluginManager; - } - } }
\ No newline at end of file |