setPlugins example

return $this;
    }

    /** * Getter method for the plugin property. * * @return Enlight_Plugin_Namespace_Loader */
    public function Plugins()
    {
        if ($this->plugins === null) {
            $this->setPlugins();
        }

        return $this->plugins;
    }

    /** * Returns the router instance. * * @return Enlight_Controller_Router|null */
    public function Router()
    {
$result = $this->storePluginService->getUpdates($context);
        $store = $result->getPlugins();

        $merged = $this->getAdditionallyLocalData($store);

        $plugins = [];
        foreach ($merged as $plugin) {
            if ($plugin->isUpdateAvailable()) {
                $plugins[] = $plugin;
            }
        }
        $result->setPlugins($plugins);

        return $result;
    }

    /** * @param PluginStruct[] $plugins * * @return PluginStruct[] */
    private function getAdditionallyStoreData($plugins, BaseRequest $context)
    {
        
Home | Imprint | This part of the site doesn't use cookies.