Aimeos\ShopBundle\Service\View::addResponse PHP Method

addResponse() protected method

Adds the "response" helper to the view object
protected addResponse ( Aimeos\MW\View\Iface $view ) : Aimeos\MW\View\Iface
$view Aimeos\MW\View\Iface View object
return Aimeos\MW\View\Iface Modified view object
    protected function addResponse(\Aimeos\MW\View\Iface $view)
    {
        $helper = new \Aimeos\MW\View\Helper\Response\Symfony2($view);
        $view->addHelper('response', $helper);
        return $view;
    }