/** * Create reference to widget-model * * @return void */ public function preDispatch() { $this->widgetsXml = Shopware()->DocPath()."files/config/Widgets.xml"; $this->widgetsApi = new Shopware_Models_Widgets_Widgets(null, $this->widgetsXml); $this->authCode = 'f0Dbh1jL9RoddLD8lqhYHKYWyUqova'; // Shopware Update-Service Rest-Code $this->dir = Shopware()->DocPath()."files/config"; parent::preDispatch(); }
/** * Disable template engine for selected actions * * @codeCoverageIgnore * @return void */ public function preDispatch() { parent::preDispatch(); if (in_array($this->Request()->getActionName(), array('validateTrackingCode','mapCustomerAccount'))) { $this->Front()->Plugins()->Json()->setRenderer(false); $this->Front()->Plugins()->ViewRenderer()->setNoRender(); } }
public function preDispatch() { if ($this->Request()->has('format')) { $this->format = $this->Request()->getParam('format', null); //remove limit parameter to export all data. $this->Request()->setParam('limit', null); } parent::preDispatch(); }
public function preDispatch() { if (strtolower($this->Request()->getActionName()) == 'index') { $available = $this->checkStoreApi(); if ($available) { $this->getCategoryService()->synchronize(); } $this->get('shopware_plugininstaller.plugin_manager')->refreshPluginList(); } parent::preDispatch(); }
/** * {@inheritdoc} */ public function preDispatch() { $this->plugin = $this->get('plugins')->Frontend()->SwagPaymentStripe(); parent::preDispatch(); }
/** * Enable json renderer for index / load action * Check acl rules * * @return void */ public function preDispatch() { if ($this->Request()->getActionName() !== 'upload') { parent::preDispatch(); } }
/** * Disable template engine for all actions * * @codeCoverageIgnore * @return void */ public function preDispatch() { parent::preDispatch(); if (in_array($this->Request()->getActionName(), array('validateOrderCode', 'validateVoucherCode', 'validateDescription'))) { $this->Front()->Plugins()->Json()->setRenderer(false); $this->Front()->Plugins()->ViewRenderer()->setNoRender(); } }
public function preDispatch() { parent::preDispatch(); $this->cacheManager = $this->get('shopware.cache_manager'); }