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:
parent
e9be4281a3
commit
be53ec0226
1 changed files with 7 additions and 0 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue