|
@@ 139-141 (lines=3) @@
|
| 136 |
|
throw new InvalidArgumentException('Router cache file must be a string or false'); |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
if ($cacheFile && file_exists($cacheFile) && !$this->isCacheFileWritable($cacheFile)) { |
| 140 |
|
throw new RuntimeException(sprintf('Router cache file `%s` is not writable', $cacheFile)); |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
if ($cacheFile && !file_exists($cacheFile) && !$this->isCacheFileWritable(dirname($cacheFile))) { |
| 144 |
|
throw new RuntimeException(sprintf('Router cache file directory `%s` is not writable', dirname($cacheFile))); |
|
@@ 143-145 (lines=3) @@
|
| 140 |
|
throw new RuntimeException(sprintf('Router cache file `%s` is not writable', $cacheFile)); |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
if ($cacheFile && !file_exists($cacheFile) && !$this->isCacheFileWritable(dirname($cacheFile))) { |
| 144 |
|
throw new RuntimeException(sprintf('Router cache file directory `%s` is not writable', dirname($cacheFile))); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
return $this; |
| 148 |
|
} |