code: public function terminate(Request $request, Response $response)
  	{
  		if ($this->eventDispatcher !== null) {
  			$event = new PostResponseEvent($this, $request, $response);
  			$this->eventDispatcher->dispatch(KernelEvents::TERMINATE, $event);
  		}
  	}
docs: {@inheritdoc}