PluginInitializer example

new SearchBundleDBAL(),
            new SearchBundleES(),
            new SitemapBundle(),
            new StaticContentBundle(),
            new StoreFrontBundle(),
            new OrderBundle(),
        ];
    }

    protected function initializePlugins()
    {
        $initializer = new PluginInitializer(
            $this->connection,
            [
                'ShopwarePlugins' => $this->config['plugin_directories']['ShopwarePlugins'],
                'ProjectPlugins' => $this->config['plugin_directories']['ProjectPlugins'],
            ]
        );

        $plugins = $initializer->initializePlugins();

        ksort($plugins);

        
$this->em->flush($plugin);

        return $context;
    }

    /** * @throws RuntimeException */
    public function refreshPluginList(DateTimeInterface $refreshDate)
    {
        $initializer = new PluginInitializer(
            $this->pdo,
            $this->pluginDirectories
        );

        $plugins = $initializer->initializePlugins();

        foreach ($plugins as $plugin) {
            $pluginInfoPath = $plugin->getPath() . '/plugin.xml';
            if (is_file($pluginInfoPath)) {
                $xmlConfigReader = new XmlPluginReader();
                $info = $xmlConfigReader->read($pluginInfoPath);
            }
Home | Imprint | This part of the site doesn't use cookies.