Enlight_Plugin_PluginManager example


    /** * @return Enlight_Plugin_PluginManager */
    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());
        }
Home | Imprint | This part of the site doesn't use cookies.