Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ AccessDeniedHttpException
// is the Request signed?if ($this->signer->checkRequest($request)) {return;}throw new AccessDeniedHttpException();}public static function getSubscribedEvents(): array{return [
in
vendor/symfony/http-kernel/EventListener/FragmentListener.php
->
validateRequest
(line 69)
return;}if ($event->isMainRequest()) {$this->validateRequest($request);}parse_str($request->query->get('_path', ''), $attributes);$request->attributes->add($attributes);$request->attributes->set('_route_params', array_replace($request->attributes->get('_route_params', []), $attributes));
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
onKernelRequest
(line 270)
$closure = static function (...$args) use (&$listener, &$closure) {if ($listener[0] instanceof \Closure) {$listener[0] = $listener[0]();$listener[1] = $listener[1] ?? '__invoke';}($closure = \Closure::fromCallable($listener))(...$args);};} else {$closure = $listener instanceof \Closure || $listener instanceof WrappedListener ? $listener : \Closure::fromCallable($listener);}}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
::
Symfony\Component\EventDispatcher\{closure}
(line 230)
foreach ($listeners as $listener) {if ($stoppable && $event->isPropagationStopped()) {break;}$listener($event, $eventName, $this);}}/*** Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
} else {$listeners = $this->getListeners($eventName);}if ($listeners) {$this->callListeners($listeners, $eventName, $event);}return $event;}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 139)
*/private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response{// request$event = new RequestEvent($this, $request, $type);$this->dispatcher->dispatch($event, KernelEvents::REQUEST);if ($event->hasResponse()) {return $this->filterResponse($event->getResponse(), $request, $type);}
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter//Request::enableHttpMethodParameterOverride();$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 11:33:53 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "6f40b8"
},
"request_uri": "http://169.58.137.185:8080/_profiler/6f40b8",
"method": "GET"
}
|
| DEBUG 11:33:53 | app | Event Subscriber: OnKernelController |
| DEBUG 11:33:53 | app | route is http://169.58.137.185:8080/_profiler/6f40b8 |
| DEBUG 11:33:53 | app | Event Subscriber: OnKernelController |
| DEBUG 11:33:53 | app | route is http://169.58.137.185:8080/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dweb_profiler.controller.exception_panel%253A%253Astylesheet |
| DEBUG 11:33:53 | app | Event Subscriber: OnKernelController |
| DEBUG 11:33:53 | app | route is http://169.58.137.185:8080/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dweb_profiler.controller.profiler%253A%253AsearchBarAction |
| DEBUG 11:33:53 | app | Event Subscriber: OnKernelController |
| DEBUG 11:33:53 | app | route is http://169.58.137.185:8080/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dweb_profiler.controller.exception_panel%253A%253Abody |
Stack Trace
|
AccessDeniedHttpException
|
|---|
Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException:
at vendor/symfony/http-kernel/EventListener/FragmentListener.php:90
at Symfony\Component\HttpKernel\EventListener\FragmentListener->validateRequest()
(vendor/symfony/http-kernel/EventListener/FragmentListener.php:69)
at Symfony\Component\HttpKernel\EventListener\FragmentListener->onKernelRequest()
(vendor/symfony/event-dispatcher/EventDispatcher.php:270)
at Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}()
(vendor/symfony/event-dispatcher/EventDispatcher.php:230)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
(vendor/symfony/event-dispatcher/EventDispatcher.php:59)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
(vendor/symfony/http-kernel/HttpKernel.php:139)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(app.php/:27)
|