classes/Http/Kernel.php
public function terminate(Request $request, Response $response)
	{
		if ($this->eventDispatcher !== null) {
			$event = new PostResponseEvent($this, $request, $response);
			$this->eventDispatcher->dispatch(KernelEvents::TERMINATE, $event);
		}
	}
public function terminate(Request $request, Response $response)
	{
		if ($this->eventDispatcher !== null) {
			$event = new PostResponseEvent($this, $request, $response);
			$this->eventDispatcher->dispatch(KernelEvents::TERMINATE, $event);
		}
	}
{@inheritdoc}