1717
1818use Phpfastcache \Core \Pool \ExtendedCacheItemPoolInterface ;
1919use Phpfastcache \CacheManager ;
20- use Phpfastcache \Exceptions \phpFastCacheDriverException ;
20+ use Phpfastcache \Exceptions \PhpfastcacheDriverException ;
2121use Symfony \Component \Stopwatch \Stopwatch ;
2222
2323/**
@@ -39,7 +39,7 @@ class Cache
3939 /**
4040 * Contains all cache instances
4141 *
42- * @var \phpFastCache \Cache\ExtendedCacheItemPoolInterface[]
42+ * @var \Phpfastcache \Cache\ExtendedCacheItemPoolInterface[]
4343 */
4444 private $ cacheInstances = [];
4545
@@ -49,7 +49,7 @@ class Cache
4949 * @param array $config
5050 * @param Stopwatch $stopwatch
5151 *
52- * @throws \phpFastCache \Exceptions\phpFastCacheDriverException
52+ * @throws \Phpfastcache \Exceptions\phpFastCacheDriverException
5353 */
5454 public function __construct ($ config , Stopwatch $ stopwatch = null )
5555 {
@@ -63,12 +63,12 @@ public function __construct($config, Stopwatch $stopwatch = null)
6363 * @param string $name
6464 * @param ExtendedCacheItemPoolInterface $instance
6565 *
66- * @throws \phpFastCache \Exceptions\phpFastCacheDriverException
66+ * @throws \Phpfastcache \Exceptions\phpFastCacheDriverException
6767 */
6868 public function createInstance ($ name , ExtendedCacheItemPoolInterface $ instance )
6969 {
7070 if (array_key_exists ($ name , $ this ->cacheInstances ) && $ this ->cacheInstances [ $ name ] instanceof ExtendedCacheItemPoolInterface) {
71- throw new phpFastCacheDriverException ("Cache instance ' {$ name }' already exists " );
71+ throw new PhpfastcacheDriverException ("Cache instance ' {$ name }' already exists " );
7272 }
7373 $ this ->cacheInstances [ $ name ] = $ instance ;
7474 }
@@ -78,9 +78,9 @@ public function createInstance($name, ExtendedCacheItemPoolInterface $instance)
7878 *
7979 * @param string $name Name of configured driver
8080 *
81- * @return \phpFastCache\Cache \ExtendedCacheItemPoolInterface
81+ * @return \Phpfastcache\Core\Pool \ExtendedCacheItemPoolInterface
8282 *
83- * @throws \phpFastCache \Exceptions\phpFastCacheDriverException
83+ * @throws \Phpfastcache \Exceptions\phpFastCacheDriverException
8484 */
8585 public function get ($ name )
8686 {
@@ -92,10 +92,10 @@ public function get($name)
9292 if (array_key_exists ($ name , $ this ->config [ 'drivers ' ])) {
9393 $ this ->createInstance ($ name , CacheManager::getInstance ($ this ->config [ 'drivers ' ][ $ name ][ 'type ' ], $ this ->config [ 'drivers ' ][ $ name ][ 'parameters ' ]));
9494 if (!$ this ->cacheInstances [ $ name ] instanceof ExtendedCacheItemPoolInterface) {
95- throw new phpFastCacheDriverException ("Cache instance ' {$ name }' does not implements ExtendedCacheItemPoolInterface " );
95+ throw new PhpfastcacheDriverException ("Cache instance ' {$ name }' does not implements ExtendedCacheItemPoolInterface " );
9696 }
9797 } else {
98- throw new phpFastCacheDriverException ("Cache instance ' {$ name }' not exists, check your config.yml " );
98+ throw new PhpfastcacheDriverException ("Cache instance ' {$ name }' not exists, check your config.yml " );
9999 }
100100 }
101101
@@ -106,7 +106,7 @@ public function get($name)
106106 }
107107
108108 /**
109- * @return \phpFastCache \Cache\ExtendedCacheItemPoolInterface
109+ * @return \Phpfastcache \Cache\ExtendedCacheItemPoolInterface
110110 */
111111 public function getTwigCacheInstance ()
112112 {
@@ -126,7 +126,7 @@ public function getConfig()
126126 /**
127127 * Return all cache instances
128128 *
129- * @return \phpFastCache \Cache\ExtendedCacheItemPoolInterface[]
129+ * @return \Phpfastcache \Cache\ExtendedCacheItemPoolInterface[]
130130 */
131131 public function getInstances ()
132132 {
0 commit comments