forked from wallabag/wallabag
Load parameters.yml from the kernel
This commit is contained in:
@ -67,6 +67,10 @@ class AppKernel extends Kernel
|
|||||||
|
|
||||||
public function registerContainerConfiguration(LoaderInterface $loader)
|
public function registerContainerConfiguration(LoaderInterface $loader)
|
||||||
{
|
{
|
||||||
|
if (file_exists($this->getProjectDir() . '/app/config/parameters.yml')) {
|
||||||
|
$loader->load($this->getProjectDir() . '/app/config/parameters.yml');
|
||||||
|
}
|
||||||
|
|
||||||
$loader->load($this->getProjectDir() . '/app/config/config_' . $this->getEnvironment() . '.yml');
|
$loader->load($this->getProjectDir() . '/app/config/config_' . $this->getEnvironment() . '.yml');
|
||||||
|
|
||||||
$loader->load(function (ContainerBuilder $container) {
|
$loader->load(function (ContainerBuilder $container) {
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
imports:
|
imports:
|
||||||
- { resource: parameters.yml }
|
|
||||||
- { resource: security.yml }
|
- { resource: security.yml }
|
||||||
- { resource: services.yml }
|
- { resource: services.yml }
|
||||||
- { resource: wallabag.yml }
|
- { resource: wallabag.yml }
|
||||||
|
|||||||
Reference in New Issue
Block a user