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
path: root/core
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-03-11 01:50:26 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-03-11 01:50:26 +0300
commit2c70df8bd427ca8ab83e714ed2cc897b87f3c624 (patch)
treea3e26a7b5f531c240da5cf368eb7c73b7724b1cb /core
parent56af15fb999c91e67dfde6564bbe545f125d4890 (diff)
Add support for using dependency injection in widgets, menus, tasks…
Diffstat (limited to 'core')
-rw-r--r--core/Plugin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Plugin.php b/core/Plugin.php
index af564a002b..bb361b5bb5 100644
--- a/core/Plugin.php
+++ b/core/Plugin.php
@@ -8,6 +8,7 @@
*/
namespace Piwik;
+use Piwik\Container\StaticContainer;
use Piwik\Plugin\Dependency;
use Piwik\Plugin\MetadataLoader;
@@ -359,7 +360,7 @@ class Plugin
$this->cache->save($cacheId, $classname);
}
- return new $classname;
+ return StaticContainer::get($classname);
}
public function findMultipleComponents($directoryWithinPlugin, $expectedSubclass)