mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 05:44:58 +00:00
Replace deprecated extends Controller by AbstractController
This commit is contained in:
@@ -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', []);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user