commit 45ff434eb506394746d899b30d20816d453a6b6a
parent 2dd41f4fd9c34c8b14de7b85f652a77d3f490b1b
Author: Felicitus <felicitus@felicitus.org>
Date: Mon, 2 Nov 2015 16:55:19 +0100
Parse a custom configuration if one exists
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/app/AppKernel.php b/app/AppKernel.php
@@ -70,6 +70,14 @@ class AppKernel extends Kernel
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
+
+ $customConfig = __DIR__.'/config/config_custom.yml';
+
+ if (file_exists($customConfig)) {
+ $loader->load($customConfig);
+ }
+
+
}
/**