@@ -36,10 +36,10 @@ discard block |
||
36 | 36 | */ |
37 | 37 | private function loadConfig($currentConfig, $env) |
38 | 38 | { |
39 | - $file = __DIR__ . '/../../../../config/config-' . $env . '.php'; |
|
39 | + $file = __DIR__ . '/../../../../config/config-' . $env . '.php'; |
|
40 | 40 | |
41 | 41 | if (!file_exists($file)) { |
42 | - $file = __DIR__ . '/../config/config-' . $env . '.php'; |
|
42 | + $file = __DIR__ . '/../config/config-' . $env . '.php'; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | if (!file_exists($file)) { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function setCache(CacheInterface $cache, $env = "live") |
63 | 63 | { |
64 | - foreach ((array)$env as $item) { |
|
64 | + foreach ((array) $env as $item) { |
|
65 | 65 | $this->cache[$item] = $cache; |
66 | 66 | $this->cacheTTL[$item] = new \DateInterval('P7D'); |
67 | 67 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function setCacheTTL(\DateInterval $ttl, $env = "live") |
78 | 78 | { |
79 | - foreach ((array)$env as $item) { |
|
79 | + foreach ((array) $env as $item) { |
|
80 | 80 | if (!isset($this->cache[$item])) { |
81 | 81 | throw new \Exception('Environment does not exists. Could not set Cache TTL.'); |
82 | 82 | } |