src/Strategy/AbstractErrorStrategy.php
public function processResponse(ResponseInterface $response, SystemEvent $event)
    {
        if ($event->getName() === SystemEvent::FINISH) {
            $event->stopPropagation(true);
            $server  = $this->getServer();
            $emitter = $server->getEmitter();
            $emitter->emit($response);

            return;
        }
        $events = $this->getEvents();
        $event->setResult(SystemEvent::FINISH, $response);
        $events->trigger($event(SystemEvent::FINISH));
    }
public function processResponse(ResponseInterface $response, SystemEvent $event)
    {
        if ($event->getName() === SystemEvent::FINISH) {
            $event->stopPropagation(true);
            $server  = $this->getServer();
            $emitter = $server->getEmitter();
            $emitter->emit($response);

            return;
        }
        $events = $this->getEvents();
        $event->setResult(SystemEvent::FINISH, $response);
        $events->trigger($event(SystemEvent::FINISH));
    }
public function processResponse ( ResponseInterface $ response , SystemEvent $ event ) { if ( $ event -> getName ( ) === SystemEvent :: FINISH ) { $ event -> stopPropagation ( true ) ; $ server = $ this -> getServer ( ) ; $ emitter = $ server -> getEmitter ( ) ; $ emitter -> emit ( $ response ) ; return ; } $ events = $ this -> getEvents ( ) ; $ event -> setResult ( SystemEvent :: FINISH , $ response ) ; $ events -> trigger ( $ event ( SystemEvent :: FINISH ) ) ; }
Processes the response.

@param \Psr\Http\Message\ResponseInterface $response The response
@param \Es\System\SystemEvent              $event    The system event
Processes the response .