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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-03-10 05:43:57 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-03-10 05:59:46 +0300
commit87577b6d8d1b3e1ca083f0a5d895a5643fd88339 (patch)
treedb8cbe095cc77beae216bf23eb707772351cff0e /core/Plugin.php
parentfb42debbaa840791b658041c83fcd6909880e06e (diff)
Remove deprecated Period::factory()
Diffstat (limited to 'core/Plugin.php')
-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)