protected function getConfigDirs($themeDir) { $configDir =
[];
if (file_exists(Shopware()->
DocPath('snippets'
))) { $configDir[] =
Shopware()->
DocPath('snippets'
);
} // Default theme directories
return array_merge($configDir,
$this->
getPluginDirs(),
$this->
getThemeDirs($themeDir));
} /**
* @return array<string>
*/
private function getPluginDirs(): array
{ $configDir =
[];
$plugins =
$this->modelManager->
getRepository(Plugin::
class)->
findBy(['active' => true
]);
foreach ($plugins as $plugin) {