Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-05-21 16:37:08 +0300
committerdiosmosis <benaka@piwik.pro>2015-05-21 18:32:41 +0300
commitb7546e0d6bfec631e17766045d907ebfb2dfdbd4 (patch)
tree76b93957377b78cdd1c000cdf9988718fd4ef777 /core/EventDispatcher.php
parent6866c3aa5924e8a9d6760a17eff4323216bd7da4 (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.php16
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