require_once $file;
$parts =
explode('/',
$dir);
$name =
array_pop($parts);
$class = '\\Shopware\\Themes\\' .
$name . '\\Theme';
/** @var \Shopware\Components\Theme $theme */
$theme =
new $class();
if ($theme->
injectBeforePlugins()) { $before[] =
$dir;
} else { $after[] =
$dir;
} } $folders =
array_merge($after,
$pluginDirs,
$before);
if ($this->eventManager
) { $folders =
$this->eventManager->
filter('Enlight_Template_Manager_FilterBuildInheritance',
$folders,
[ 'themeDirectories' =>
$themeDirectories,