public function shutdown($response = null)
    {

        $this->collectGarbage();
        $applicationEvent = $this->getApplicationEvent();
        $applicationEvent->setResponse($response);
        $applicationEvent->setName(self::EVENT_SYSTEM_SHUTDOWN);
        $this->emit($applicationEvent, $this->terminateOutputBuffering(1, $response));
    }
public function shutdown($response = null)
    {

        $this->collectGarbage();
        $applicationEvent = $this->getApplicationEvent();
        $applicationEvent->setResponse($response);
        $applicationEvent->setName(self::EVENT_SYSTEM_SHUTDOWN);
        $this->emit($applicationEvent, $this->terminateOutputBuffering(1, $response));
    }
public function shutdown ( $ response = null ) { $ this -> collectGarbage ( ) ; $ applicationEvent = $ this -> getApplicationEvent ( ) ; $ applicationEvent -> setResponse ( $ response ) ; $ applicationEvent -> setName ( self :: EVENT_SYSTEM_SHUTDOWN ) ; $ this -> emit ( $ applicationEvent , $ this -> terminateOutputBuffering ( 1 , $ response ) ) ; }
Finish request. Collect garbage and terminate output buffering

@param \Psr\Http\Message\ResponseInterface $response
@return void
Finish request . Collect garbage and terminate output buffering