return $return;
}
private function showIndex() {
if (!$this->isGranted('ROLE_ADMIN')) {
throw $this->createNotFoundException();
}
$categories1 = $this->getDoctrine()->getRepository(ProductsCat::class)->findBy(array('parentId' => NULL), array('position' => 'ASC'));
echo '<ul>';
foreach ($categories1 as $category1) {
echo '<li>';
$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);
{
$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) {
NotFoundHttpException |
---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: Not Found at vendor/symfony/framework-bundle/Controller/ControllerTrait.php:294 at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createNotFoundException() (src/Controller/ProductsController.php:167) at App\Controller\ProductsController->showIndex() (src/Controller/ProductsController.php:160) at App\Controller\ProductsController->index(object(Request), 'clinical-chemistry', 'parameters', 'alpha-hydroxybutyrate-dehydrogenase', 'a-800-hbdh', null, object(Translator)) (vendor/symfony/http-kernel/HttpKernel.php:169) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:81) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:29) |