'onStartDispatch'
);
return true;
} /**
* Loads the plugin before the dispatch.
*/
public function onStartDispatch(Enlight_Event_EventArgs
$args) { $event =
new Enlight_Event_Handler_Default( 'Enlight_Controller_Front_PreDispatch',
[$this, 'onPreDispatch'
] );
Shopware()->
Events()->
registerListener($event);
} /**
* Checks the url / the request and passes it around if necessary.
*/
public function onPreDispatch(Enlight_Controller_EventArgs
$args) {