public function injectResponse(ViewEvent $e)
    {
        $renderer = $e->getRenderer();
        if($renderer !== $this->renderer) {
            // not our renderer
            return;
        }

        $result = $e->getResult();
        $response = $e->getResponse();

        $response->setContent($result);
    }
public function injectResponse(ViewEvent $e)
    {
        $renderer = $e->getRenderer();
        if($renderer !== $this->renderer) {
            // not our renderer
            return;
        }

        $result = $e->getResult();
        $response = $e->getResponse();

        $response->setContent($result);
    }
public function injectResponse ( ViewEvent $ e ) { $ renderer = $ e -> getRenderer ( ) ; if ( $ renderer !== $ this -> renderer ) { // not our renderer return ; } $ result = $ e -> getResult ( ) ; $ response = $ e -> getResponse ( ) ; $ response -> setContent ( $ result ) ; }
Inject the response from the renderer.

@param ViewEvent $e
Inject the response from the renderer .