Skip to content

Instantly share code, notes, and snippets.

@anvodev
Created May 3, 2020 17:24
Show Gist options
  • Select an option

  • Save anvodev/e794fd311c645e4c28cc73e308aa859e to your computer and use it in GitHub Desktop.

Select an option

Save anvodev/e794fd311c645e4c28cc73e308aa859e to your computer and use it in GitHub Desktop.
Request stage
//vendor/symfony/http-kernel/HttpKernel.php
<?php
//...
$this->requestStack->push($request);
// request
$event = new RequestEvent($this, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::REQUEST);
if ($event->hasResponse()) {
return $this->filterResponse($event->getResponse(), $request, $type);
}
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment