src/Dispatcher.php
protected function filterResponse(Response $response)
    {
        $event = new FilterResponseEvent($this->app, $response);
        $this->event_dispatcher->dispatch(DietcubeEvents::FILTER_RESPONSE, $event);

        return $this->finishRequest($event->getResponse());
    }
protected function filterResponse(Response $response)
    {
        $event = new FilterResponseEvent($this->app, $response);
        $this->event_dispatcher->dispatch(DietcubeEvents::FILTER_RESPONSE, $event);

        return $this->finishRequest($event->getResponse());
    }
protected function filterResponse ( Response $ response ) { $ event = new FilterResponseEvent ( $ this -> app , $ response ) ; $ this -> event_dispatcher -> dispatch ( DietcubeEvents :: FILTER_RESPONSE , $ event ) ; return $ this -> finishRequest ( $ event -> getResponse ( ) ) ; }
Dispatch FILTER_RESPONSE event to filter response.

@param Response $response
@return Response
Dispatch FILTER_RESPONSE event to filter response .