Exceptions
Exceptions 2
Symfony\Component\HttpKernel\Exception\ BadRequestHttpException
in
vendor/symfony/http-kernel/EventListener/RouterListener.php
->
setCurrentRequest
(line 101)
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelRequest
(line 126)
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 264)
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
doDispatch
(line 239)
* @param object $event The event object to pass to the event handlers/listeners
*/
protected function callListeners(iterable $listeners, string $eventName, $event)
{
if ($event instanceof Event) {
$this->doDispatch($listeners, $eventName, $event);
return;
}
$stoppable = $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 73)
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 168)
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 134)
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 80)
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
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 201)
Symfony\Component\HttpFoundation\Exception\ SuspiciousOperationException
in
vendor/symfony/http-foundation/Request.php
(line 1257)
if (\in_array($method, ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'PATCH', 'PURGE', 'TRACE'], true)) {
return $this->method = $method;
}
if (!preg_match('/^[A-Z]++$/D', $method)) {
throw new SuspiciousOperationException(sprintf('Invalid method override "%s".', $method));
}
return $this->method = $method;
}
in
vendor/symfony/routing/RequestContext.php
->
getMethod
(line 57)
*/
public function fromRequest(Request $request)
{
$this->setBaseUrl($request->getBaseUrl());
$this->setPathInfo($request->getPathInfo());
$this->setMethod($request->getMethod());
$this->setHost($request->getHost());
$this->setScheme($request->getScheme());
$this->setHttpPort($request->isSecure() || null === $request->getPort() ? $this->httpPort : $request->getPort());
$this->setHttpsPort($request->isSecure() && null !== $request->getPort() ? $request->getPort() : $this->httpsPort);
$this->setQueryString($request->server->get('QUERY_STRING', ''));
in
vendor/symfony/http-kernel/EventListener/RouterListener.php
->
fromRequest
(line 81)
in
vendor/symfony/http-kernel/EventListener/RouterListener.php
->
setCurrentRequest
(line 101)
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelRequest
(line 126)
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 264)
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
doDispatch
(line 239)
* @param object $event The event object to pass to the event handlers/listeners
*/
protected function callListeners(iterable $listeners, string $eventName, $event)
{
if ($event instanceof Event) {
$this->doDispatch($listeners, $eventName, $event);
return;
}
$stoppable = $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 73)
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 168)
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 134)
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 80)
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
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 201)
Stack Traces 2
[2/2] BadRequestHttpException |
---|
Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Invalid method override "__CONSTRUCT". at vendor/symfony/http-kernel/EventListener/RouterListener.php:83 at Symfony\Component\HttpKernel\EventListener\RouterListener->setCurrentRequest() (vendor/symfony/http-kernel/EventListener/RouterListener.php:101) at Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:264) at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() (vendor/symfony/event-dispatcher/EventDispatcher.php:239) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:73) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:134) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:80) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:25) |
[1/2] SuspiciousOperationException |
---|
Symfony\Component\HttpFoundation\Exception\SuspiciousOperationException: Invalid method override "__CONSTRUCT". at vendor/symfony/http-foundation/Request.php:1257 at Symfony\Component\HttpFoundation\Request->getMethod() (vendor/symfony/routing/RequestContext.php:57) at Symfony\Component\Routing\RequestContext->fromRequest() (vendor/symfony/http-kernel/EventListener/RouterListener.php:81) at Symfony\Component\HttpKernel\EventListener\RouterListener->setCurrentRequest() (vendor/symfony/http-kernel/EventListener/RouterListener.php:101) at Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:264) at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() (vendor/symfony/event-dispatcher/EventDispatcher.php:239) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:73) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:134) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:80) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:25) |