/**
* Optimize Sourcecode / Apply SEO rules
*/
public function onPostDispatch(Enlight_Controller_ActionEventArgs
$args) { $request =
$args->
getSubject()->
Request();
$response =
$args->
getSubject()->
Response();
$view =
$args->
getSubject()->
View();
if (!
$request->
isDispatched() ||
$response->
isException() ||
$request->
getModuleName() !== 'frontend'
|| !
$view->
hasTemplate() ) { return;
} $config =
$this->
get(Shopware_Components_Config::
class);
/** @var QueryAliasMapper $mapper */
$mapper =
$this->
get(QueryAliasMapper::
class);