diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-01-12 04:44:22 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-01-12 04:44:22 +0300 |
commit | ff9e415fb23ae06aa68a73e2c3dcf32ff092444b (patch) | |
tree | 5aa0963d3283010a14e67107736f218765dd2005 /core/Cache.php | |
parent | 636d5400a7aee9fff5b3966b06c5d4e248ce825c (diff) |
Simplified get from container with new shorter method
Diffstat (limited to 'core/Cache.php')
-rw-r--r-- | core/Cache.php | 8 |
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': |