public function factory( Enlight_Loader
$loader,
Enlight_Event_EventManager
$eventManager,
Shopware
$application,
array
$pluginDirectories,
ReaderInterface
$configReader ) { $pluginManager =
new Enlight_Plugin_PluginManager($application);
foreach (['Core', 'Frontend', 'Backend'
] as $namespace) { $namespace =
new Shopware_Components_Plugin_Namespace( $namespace,
null,
$pluginDirectories,
$configReader );
$pluginManager->
registerNamespace($namespace);
$eventManager->
registerSubscriber($namespace->
Subscriber());
} foreach ($pluginDirectories as $source =>
$path) {