|
@@ -20,10 +20,10 @@ class CreateHydratorDirectoryPass implements CompilerPassInterface
|
|
$hydratorCacheDir = $container->getParameter('doctrine.odm.mongodb.hydrator_dir');
|
|
$hydratorCacheDir = $container->getParameter('doctrine.odm.mongodb.hydrator_dir');
|
|
if (!is_dir($hydratorCacheDir)) {
|
|
if (!is_dir($hydratorCacheDir)) {
|
|
if (false === @mkdir($hydratorCacheDir, 0777, true)) {
|
|
if (false === @mkdir($hydratorCacheDir, 0777, true)) {
|
|
- exit(sprintf('Unable to create the Doctrine Hydrator directory (%s)', dirname($hydratorCacheDir)));
|
|
|
|
|
|
+ throw new \RuntimeException(sprintf('Unable to create the Doctrine Hydrator directory (%s)', dirname($hydratorCacheDir)));
|
|
}
|
|
}
|
|
} elseif (!is_writable($hydratorCacheDir)) {
|
|
} elseif (!is_writable($hydratorCacheDir)) {
|
|
- exit(sprintf('Unable to write in the Doctrine Hydrator directory (%s)', $hydratorCacheDir));
|
|
|
|
|
|
+ throw new \RuntimeException(sprintf('Unable to write in the Doctrine Hydrator directory (%s)', $hydratorCacheDir));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|