Skip to content
Snippets Groups Projects

Issue #3274323: Split ExcludedPathsSubscriber into multiple classes

All threads resolved!
All threads resolved!
Compare and Show latest version
2 files
+ 6
29
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -44,9 +44,8 @@ class SiteConfigurationExcluder implements EventSubscriberInterface {
* @see \Drupal\package_manager\Event\ExcludedPathsTrait::excludePath()
*/
public function ignoreCommonPaths(StageEvent $event): void {
// Compile two lists of paths to exclude: paths that are relative to the
// project root, and paths that are relative to the web root.
$web = $project = [];
// Site configuration files are always excluded relative to the web root.
$web = [];
// Ignore site-specific settings files, which are always in the web root.
$settings_files = [
@@ -60,7 +59,6 @@ class SiteConfigurationExcluder implements EventSubscriberInterface {
}
$this->excludeInWebRoot($event, $web);
$this->excludeInProjectRoot($event, $project);
}
/**
Loading