Skip to content

Commit 8c39c9e

Browse files
authored
Merge pull request #434 from mnocon/fix-mkdir-warnings
Changed ExposedRoutesExtractor to handle mkdir warnings
2 parents 4d90348 + a1697e2 commit 8c39c9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Extractor/ExposedRoutesExtractor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ public function getCachePath(string $locale = null): string
147147
{
148148
$cachePath = $this->cacheDir.DIRECTORY_SEPARATOR.'fosJsRouting';
149149
if (!file_exists($cachePath)) {
150-
mkdir($cachePath);
150+
if (false === @mkdir($cachePath)) {
151+
throw new \RuntimeException('Unable to create Cache directory ' . $cachePath);
152+
}
151153
}
152154

153155
if (isset($this->bundles['JMSI18nRoutingBundle'])) {

0 commit comments

Comments
 (0)