Skip to content

Commit

Permalink
[#1419] Moved services.local.php inclusion into settings.local.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Oct 16, 2024
1 parent 67931e2 commit 08618e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions web/sites/default/default.settings.local.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

declare(strict_types=1);

if (file_exists($app_root . '/' . $site_path . '/services.local.yml')) {
$settings['container_yamls'][] = $app_root . '/' . $site_path . '/services.local.yml';
}

// Show all error messages on the site.
$config['system.logging']['error_level'] = 'all';

Expand Down
4 changes: 1 addition & 3 deletions web/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,11 @@
//
// Copy default.settings.local.php and default.services.local.yml to
// settings.local.php and services.local.yml respectively.
// services.local.yml is loaded in in settings.local.php.
//
// Keep this code block at the end of this file to take full effect.
// @codeCoverageIgnoreStart
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
require $app_root . '/' . $site_path . '/settings.local.php';
}
if (file_exists($app_root . '/' . $site_path . '/services.local.yml')) {
$settings['container_yamls'][] = $app_root . '/' . $site_path . '/services.local.yml';
}
// @codeCoverageIgnoreEnd

1 comment on commit 08618e7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.