diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-10 05:43:57 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-10 05:59:46 +0300 |
commit | 87577b6d8d1b3e1ca083f0a5d895a5643fd88339 (patch) | |
tree | db8cbe095cc77beae216bf23eb707772351cff0e /core/Plugin.php | |
parent | fb42debbaa840791b658041c83fcd6909880e06e (diff) |
Remove deprecated Period::factory()
Diffstat (limited to 'core/Plugin.php')
-rw-r--r-- | core/Plugin.php | 3 |
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) |