Conditionally load services.yml (not present by default)

but very useful to put there to enable theme debugging and such.
This commit is contained in:
benjamin melançon 2019-07-28 16:15:13 -04:00
parent e9be4281a3
commit be53ec0226

View file

@ -61,3 +61,10 @@ $config['image.settings']['allow_insecure_derivatives'] = TRUE;
if (empty($config_directories[CONFIG_SYNC_DIRECTORY])) {
$config_directories[CONFIG_SYNC_DIRECTORY] = '../config/sync';
}
/**
* Load services definition file.
*/
if (file_exists($app_root . '/' . $site_path . '/services.yml')) {
$settings['container_yamls'][] = $app_root . '/' . $site_path . '/services.yml';
}