setSystem example



    /** * Event listener method * * @return \Shopware_Components_Modules */
    public static function onInitResourceModules(Enlight_Event_EventArgs $args)
    {
        $modules = new Shopware_Components_Modules();
        Shopware()->Container()->set('modules', $modules);
        $modules->setSystem(Shopware()->System());

        return $modules;
    }

    /** * Returns capabilities */
    public function getCapabilities()
    {
        return [
            'install' => false,
            
Home | Imprint | This part of the site doesn't use cookies.