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-04-05 09:11:54 +0300
committerdiosmosis <benaka@piwik.pro>2015-04-05 09:11:54 +0300
commit3661b2c763438e4d64420d4b9c12d54f838469bb (patch)
treeeadc71121603d8617b77f68a77730dd45b050b9e /core/EventDispatcher.php
parent7055913662c471c0ef3157926bca77e923d83f35 (diff)
Adding Plugin Manager to DI container.
Diffstat (limited to 'core/EventDispatcher.php')
-rw-r--r--core/EventDispatcher.php5
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