| @@ 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( |
|
| 141 | sprintf('Router cache file `%s` is not writable', $cacheFile) |
|
| 142 | ); |
|
| 143 | } |
|
| 144 | ||
| @@ 145-147 (lines=3) @@ | ||
| 142 | ); |
|
| 143 | } |
|
| 144 | ||
| 145 | if ($cacheFile && !file_exists($cacheFile) && !$this->isCacheFileWritable(dirname($cacheFile))) { |
|
| 146 | throw new RuntimeException( |
|
| 147 | sprintf('Router cache file directory `%s` is not writable', dirname($cacheFile)) |
|
| 148 | ); |
|
| 149 | } |
|
| 150 | ||