/**
* Get the list of directories to scan.
*
* @return string[]
* The directories.
*/
private function getScanDirectories(): array
{ $extension_directories =
[ ...
$this->moduleHandler->
getModuleDirectories(),
...
$this->themeHandler->
getThemeDirectories(),
];
return array_map( static fn(string
$path) =>
rtrim($path, DIRECTORY_SEPARATOR
) . DIRECTORY_SEPARATOR . 'components',
$extension_directories );
} /**
* Changes the library paths, so they can be used by the library system.
*
* We need this so we can let users apply overrides to JS and CSS files with
* paths relative to the component.
*
* @param array $overrides
* The library overrides as provided by the component author.
* @param string $component_directory
* The directory for the component.
*
* @return array
* The overrides with the fixed paths.
*/