@@ -33,14 +33,14 @@ discard block |
||
33 | 33 | $driver = $factory->create("WebStream\Cache\Driver\Apcu", $config); |
34 | 34 | break; |
35 | 35 | case "memcached": |
36 | - $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot() . '/config/cache.yml'); |
|
36 | + $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot().'/config/cache.yml'); |
|
37 | 37 | if (array_key_exists('memcached', $cacheConfig)) { |
38 | 38 | $config->servers = [[$cacheConfig['memcached']['host'], $cacheConfig['memcached']['port']]]; |
39 | 39 | $driver = $factory->create("WebStream\Cache\Driver\Memcached", $config); |
40 | 40 | } |
41 | 41 | break; |
42 | 42 | case "redis": |
43 | - $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot() . '/config/cache.yml'); |
|
43 | + $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot().'/config/cache.yml'); |
|
44 | 44 | if (array_key_exists('redis', $cacheConfig)) { |
45 | 45 | $config->host = $cacheConfig['redis']['host']; |
46 | 46 | $config->port = $cacheConfig['redis']['port']; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | break; |
50 | 50 | case "temporaryFile": |
51 | - $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot() . '/config/cache.yml'); |
|
51 | + $cacheConfig = \Spyc::YAMLLoad($this->getApplicationRoot().'/config/cache.yml'); |
|
52 | 52 | if (array_key_exists('temporaryfile', $cacheConfig)) { |
53 | 53 | $config->cacheDir = $cacheConfig['temporaryfile']['path']; |
54 | 54 | $driver = $factory->create("WebStream\Cache\Driver\TemporaryFile", $config); |