Skip to content
Snippets Groups Projects

Issue #3363938: Package Manager should ignore default.settings.php and default.services.yml

1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -131,12 +131,12 @@ class SiteConfigurationExcluder implements EventSubscriberInterface {
@@ -131,12 +131,12 @@ class SiteConfigurationExcluder implements EventSubscriberInterface {
* The full path to `sites/default` within the given root directory.
* The full path to `sites/default` within the given root directory.
*/
*/
private function getDefaultSiteDirectoryPath(string $root_dir): string {
private function getDefaultSiteDirectoryPath(string $root_dir): string {
$dir = [$root_dir, 'sites', 'default'];
$dir = [$root_dir];
$web_root = $this->pathLocator->getWebRoot();
$web_root = $this->pathLocator->getWebRoot();
if ($web_root) {
if ($web_root) {
array_splice($dir, 1, 0, $web_root);
$dir[] = $web_root;
}
}
return implode(DIRECTORY_SEPARATOR, $dir);
return implode(DIRECTORY_SEPARATOR, [...$dir, 'sites', 'default']);
}
}
/**
/**
Loading