mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-06 17:41:01 +00:00
Load parameters.yml from the kernel
This commit is contained in:
parent
10618103b6
commit
982e25ceb6
2 changed files with 4 additions and 1 deletions
|
@ -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 }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue