|
@@ -9,6 +9,9 @@ class CreateProxyDirectoryPass implements CompilerPassInterface
|
|
|
{
|
|
|
public function process(ContainerBuilder $container)
|
|
|
{
|
|
|
+ if (!$container->hasParameter('doctrine.orm.proxy_dir')) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
$proxyCacheDir = $container->getParameter('doctrine.orm.proxy_dir');
|
|
|
// Create entity proxy directory
|
|
|
if (!is_dir($proxyCacheDir)) {
|
|
@@ -19,4 +22,4 @@ class CreateProxyDirectoryPass implements CompilerPassInterface
|
|
|
throw new \RuntimeException(sprintf('Unable to write in the Doctrine Proxy directory (%s)', $proxyCacheDir));
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|