public function staticPages(Request $request, $url)
{
try {
$page = $this->getTkApi()->page($url);
} catch (\Exception $e) {
return $this->renderErrorTemplate($e->getStatusCode(), $request->getLocale());
}
if (!$page || (isset($page['error']) && !empty($page['error']))) {
return $this->renderErrorTemplate(500);
}
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
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) {
No log messages
NotFoundHttpException |
---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: Not found at src/Service/TKApi/TKApi.php:304 at App\Service\TKApi\TKApi->execute(array('entity' => 'errorpage', 'fields' => array('code', 'header', 'subtitle', 'customer_support'), 'filters' => array(array('field' => 'enabled', 'value' => true, 'operator' => '='), array('field' => 'deleted', 'value' => false, 'operator' => '='), array('field' => 'code', 'value' => 404, 'operator' => '='))), true) (src/Service/TKApi/Traits/Page.php:293) at App\Service\TKApi\TKApi->errorPage(404) (src/Controller/BaseController.php:543) at App\Controller\BaseController->renderErrorTemplate(404, 'es') (src/Controller/StaticPagesController.php:227) at App\Controller\StaticPagesController->staticPages(object(Request), 'build/listing_page_js.e1e65537.js') (vendor/symfony/http-kernel/HttpKernel.php:157) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:79) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:196) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:38) |