forked from wallabag/wallabag
Process database parameters only when parameters.yml exists
This commit is contained in:
@ -79,9 +79,11 @@ class AppKernel extends Kernel
|
||||
$container->addObjectResource($this);
|
||||
});
|
||||
|
||||
$loader->load(function (ContainerBuilder $container) {
|
||||
$this->processDatabaseParameters($container);
|
||||
});
|
||||
if (file_exists($this->getProjectDir() . '/app/config/parameters.yml')) {
|
||||
$loader->load(function (ContainerBuilder $container) {
|
||||
$this->processDatabaseParameters($container);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
protected function build(ContainerBuilder $container)
|
||||
|
||||
Reference in New Issue
Block a user