SAND-framework/console/skel/symfony-app/src/Controller/ErrorController.php
2020-12-18 18:55:35 +01:00

26 lines
612 B
PHP

<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class ErrorController extends AbstractController
{
/**
* @Route("/symfony/unauthorized", name="unauthorized")
*/
public function indexAction()
{
print_r("<pre>");
//print_r($this->get('session'));
print_r($_COOKIE);
print_r($_SESSION);
print_r("</pre>");
// replace this example code with whatever you need
return $this->render('default/unauthorized.html.twig', [
]);
}
}