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-01-12 04:44:22 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-01-12 04:44:22 +0300
commitff9e415fb23ae06aa68a73e2c3dcf32ff092444b (patch)
tree5aa0963d3283010a14e67107736f218765dd2005 /core/Cache.php
parent636d5400a7aee9fff5b3966b06c5d4e248ce825c (diff)
Simplified get from container with new shorter method
Diffstat (limited to 'core/Cache.php')
-rw-r--r--core/Cache.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Cache.php b/core/Cache.php
index b90be8d27b..3036d05006 100644
--- a/core/Cache.php
+++ b/core/Cache.php
@@ -24,7 +24,7 @@ class Cache
*/
public static function getLazyCache()
{
- return StaticContainer::getContainer()->get('Piwik\Cache\Lazy');
+ return StaticContainer::get('Piwik\Cache\Lazy');
}
/**
@@ -35,7 +35,7 @@ class Cache
*/
public static function getTransientCache()
{
- return StaticContainer::getContainer()->get('Piwik\Cache\Transient');
+ return StaticContainer::get('Piwik\Cache\Transient');
}
/**
@@ -53,7 +53,7 @@ class Cache
*/
public static function getEagerCache()
{
- return StaticContainer::getContainer()->get('Piwik\Cache\Eager');
+ return StaticContainer::get('Piwik\Cache\Eager');
}
public static function flushAll()
@@ -84,7 +84,7 @@ class Cache
switch ($type) {
case 'file':
- $options = array('directory' => StaticContainer::getContainer()->get('path.cache'));
+ $options = array('directory' => StaticContainer::get('path.cache'));
break;
case 'chained':