if ($referer = $request->headers->get('referer')) { $message .= sprintf(' (from "%s")', $referer); } throw new NotFoundHttpException($message, $e); } catch (MethodNotAllowedException $e) { $message = sprintf('No route found for "%s %s": Method Not Allowed (Allow: %s)', $request->getMethod(), $request->getPathInfo(), implode(', ', $e->getAllowedMethods())); throw new MethodNotAllowedHttpException($e->getAllowedMethods(), $message, $e); } public function handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $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) {// $request = Request::create('/', 'GET', [], $_COOKIE, $_FILES, $_SERVER); } $addQueryParams['include_base_path'] = BASE; $request->query->add($addQueryParams);// try{ $response = $this->kernel->handle($request);// }catch(Exception $ex){// echo '<pre>';// print_r($ex->getMessage());// die;// } * @param array $addQueryParams * @param bool $modifyHeaders * @return string */ public function getRequestResponseContent(?Request $request = null, array $addQueryParams = [], bool $modifyHeaders = true): string{ $request = $this->getRequestResponse($request, $addQueryParams); $content = $request->getContent(); /** * add basepath on /admin/build/-urls */ } echo $fileContent;}else{ $includes = get_included_files(); if((isset($includes[0]) && $includes[0] === __FILE__) || (isset($includes[1]) && $includes[1] === __FILE__)){ echo SymfonyConnect::get()->getRequestResponseContent(null, ['include_key' => INCLUDE_KEY]); }}function addServerBasePath(string $content): string{ return BASE && BASE !== '/' ? str_replace('/admin/build/', BASE.'/admin/build/', $content) : $content; // add attributes based on the request (routing) try { // matching a request is more powerful than matching a URL path + context, so try that first if ($this->matcher instanceof RequestMatcherInterface) { $parameters = $this->matcher->matchRequest($request); } else { $parameters = $this->matcher->match($request->getPathInfo()); } if (null !== $this->logger) { public function handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $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) {// $request = Request::create('/', 'GET', [], $_COOKIE, $_FILES, $_SERVER); } $addQueryParams['include_base_path'] = BASE; $request->query->add($addQueryParams);// try{ $response = $this->kernel->handle($request);// }catch(Exception $ex){// echo '<pre>';// print_r($ex->getMessage());// die;// } * @param array $addQueryParams * @param bool $modifyHeaders * @return string */ public function getRequestResponseContent(?Request $request = null, array $addQueryParams = [], bool $modifyHeaders = true): string{ $request = $this->getRequestResponse($request, $addQueryParams); $content = $request->getContent(); /** * add basepath on /admin/build/-urls */ } echo $fileContent;}else{ $includes = get_included_files(); if((isset($includes[0]) && $includes[0] === __FILE__) || (isset($includes[1]) && $includes[1] === __FILE__)){ echo SymfonyConnect::get()->getRequestResponseContent(null, ['include_key' => INCLUDE_KEY]); }}function addServerBasePath(string $content): string{ return BASE && BASE !== '/' ? str_replace('/admin/build/', BASE.'/admin/build/', $content) : $content;No log messages
[2/2] NotFoundHttpException |
|---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
No route found for "GET /login/index.php"
at vendor/symfony/http-kernel/EventListener/RouterListener.php:136
at Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest()
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
(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/event-dispatcher/Debug/TraceableEventDispatcher.php:151)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
(vendor/symfony/http-kernel/HttpKernel.php:133)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:79)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:196)
at Symfony\Component\HttpKernel\Kernel->handle()
(/var/www/vhosts/brauhaus-friedrichroda.de/httpdocs/admin/SymfonyConnect.php:105)
at SymfonyConnect->getRequestResponse()
(/var/www/vhosts/brauhaus-friedrichroda.de/httpdocs/admin/SymfonyConnect.php:125)
at SymfonyConnect->getRequestResponseContent()
(/var/www/vhosts/brauhaus-friedrichroda.de/httpdocs/admin/SymfonyConnect.php:218)
at require_once('/var/www/vhosts/brauhaus-friedrichroda.de/httpdocs/admin/SymfonyConnect.php')
(/var/www/vhosts/brauhaus-friedrichroda.de/httpdocs/admin/index.php:6)
|
[1/2] ResourceNotFoundException |
|---|
Symfony\Component\Routing\Exception\ResourceNotFoundException:
No routes found for "/login/index.php/".
at vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:70
at Symfony\Component\Routing\Matcher\CompiledUrlMatcher->match()
(vendor/symfony/routing/Matcher/UrlMatcher.php:106)
at Symfony\Component\Routing\Matcher\UrlMatcher->matchRequest()
(vendor/symfony/routing/Router.php:257)
at Symfony\Component\Routing\Router->matchRequest()
(vendor/symfony/http-kernel/EventListener/RouterListener.php:112)
at Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest()
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
(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/event-dispatcher/Debug/TraceableEventDispatcher.php:151)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
(vendor/symfony/http-kernel/HttpKernel.php:133)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:79)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:196)
at Symfony\Component\HttpKernel\Kernel->handle()
(/var/www/vhosts/brauhaus-friedrichroda.de/httpdocs/admin/SymfonyConnect.php:105)
at SymfonyConnect->getRequestResponse()
(/var/www/vhosts/brauhaus-friedrichroda.de/httpdocs/admin/SymfonyConnect.php:125)
at SymfonyConnect->getRequestResponseContent()
(/var/www/vhosts/brauhaus-friedrichroda.de/httpdocs/admin/SymfonyConnect.php:218)
at require_once('/var/www/vhosts/brauhaus-friedrichroda.de/httpdocs/admin/SymfonyConnect.php')
(/var/www/vhosts/brauhaus-friedrichroda.de/httpdocs/admin/index.php:6)
|