Replace deprecated extends Controller by AbstractController

This commit is contained in:
2021-02-01 18:17:33 +01:00
parent f63c4b42e0
commit eae13ac3d8
5 changed files with 32 additions and 15 deletions

View File

@@ -2,19 +2,23 @@
namespace Chill\PersonBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class AdminController extends Controller
/**
* Class AdminController
*
* @package Chill\PersonBundle\Controller
*/
class AdminController extends AbstractController
{
/**
*
* @param $_locale
* @return \Symfony\Component\HttpFoundation\Response
*/
public function indexAction($_locale)
{
return $this->render('ChillPersonBundle:Admin:index.html.twig', array(
// ...
));
return $this->render('ChillPersonBundle:Admin:index.html.twig', []);
}
}