You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 satır
774B

  1. <?php
  2. namespace Lc\SovBundle\Controller;
  3. use Throwable;
  4. use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
  5. class ErrorController extends AbstractController
  6. {
  7. public function show(Throwable $exception, DebugLoggerInterface $logger = null)
  8. {
  9. if ($this->getRequestStack()->getCurrentRequest()->getPathInfo() == "/admin") {
  10. return $this->render('@LcSov/exception/error.html.twig', [
  11. "code" => $exception->getCode(),
  12. "message" => $exception->getMessage()
  13. ]);
  14. } else {
  15. return $this->render('bundles/TwigBundle/Exception/error.html.twig', [
  16. "code" => $exception->getCode(),
  17. "message" => $exception->getMessage()
  18. ]);
  19. }
  20. }
  21. }