From 8029b9b8ffe3e5ae3e278c7775788d4b4312d69a Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Mon, 1 Feb 2021 18:17:33 +0100 Subject: [PATCH] Replace deprecated extends Controller by AbstractController --- Controller/AdminController.php | 10 +++++----- Controller/EventController.php | 7 ++++--- Controller/EventTypeController.php | 7 ++++--- Controller/ParticipationController.php | 4 ++-- Controller/RoleController.php | 8 ++++---- Controller/StatusController.php | 7 ++++--- 6 files changed, 23 insertions(+), 20 deletions(-) diff --git a/Controller/AdminController.php b/Controller/AdminController.php index c3a419bf2..182588398 100644 --- a/Controller/AdminController.php +++ b/Controller/AdminController.php @@ -20,15 +20,15 @@ namespace Chill\EventBundle\Controller; - -use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; /** - * Controller for the event configuration section (in - * the admin) + * Class AdminController + * Controller for the event configuration section (in admin section) * + * @package Chill\EventBundle\Controller */ -class AdminController extends Controller +class AdminController extends AbstractController { public function indexAction() { diff --git a/Controller/EventController.php b/Controller/EventController.php index fa0797ce9..9f4d242d1 100644 --- a/Controller/EventController.php +++ b/Controller/EventController.php @@ -29,6 +29,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Csv; use PhpOffice\PhpSpreadsheet\Writer\Ods; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; +use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\HttpFoundation\StreamedResponse; use Chill\EventBundle\Security\Authorization\EventVoter; @@ -37,7 +38,6 @@ use Chill\PersonBundle\Entity\Person; use Chill\PersonBundle\Privacy\PrivacyEvent; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\HttpFoundation\Request; -use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Chill\PersonBundle\Form\Type\PickPersonType; use Chill\EventBundle\Entity\Event; use Chill\EventBundle\Form\EventType; @@ -53,10 +53,11 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; /** - * Event controller. + * Class EventController * + * @package Chill\EventBundle\Controller */ -class EventController extends Controller +class EventController extends AbstractController { /** * @var EventDispatcherInterface diff --git a/Controller/EventTypeController.php b/Controller/EventTypeController.php index c30c656bf..d1f98f45a 100644 --- a/Controller/EventTypeController.php +++ b/Controller/EventTypeController.php @@ -2,18 +2,19 @@ namespace Chill\EventBundle\Controller; +use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\HttpFoundation\Request; -use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Chill\EventBundle\Entity\EventType; use Chill\EventBundle\Form\EventTypeType; /** - * EventType controller. + * Class EventTypeController * + * @package Chill\EventBundle\Controller */ -class EventTypeController extends Controller +class EventTypeController extends AbstractController { /** diff --git a/Controller/ParticipationController.php b/Controller/ParticipationController.php index dda987c0a..cc8062afb 100644 --- a/Controller/ParticipationController.php +++ b/Controller/ParticipationController.php @@ -21,7 +21,7 @@ namespace Chill\EventBundle\Controller; use ArrayIterator; use Chill\EventBundle\Entity\Event; -use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Chill\EventBundle\Entity\Participation; @@ -36,7 +36,7 @@ use Symfony\Component\Form\Extension\Core\Type\CollectionType; * @package Chill\EventBundle\Controller * @author Julien Fastré */ -class ParticipationController extends Controller +class ParticipationController extends AbstractController { /** diff --git a/Controller/RoleController.php b/Controller/RoleController.php index 5f0fe0499..468df32f2 100644 --- a/Controller/RoleController.php +++ b/Controller/RoleController.php @@ -2,18 +2,18 @@ namespace Chill\EventBundle\Controller; +use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\HttpFoundation\Request; -use Symfony\Bundle\FrameworkBundle\Controller\Controller; - use Chill\EventBundle\Entity\Role; use Chill\EventBundle\Form\RoleType; /** - * Role controller. + * Class RoleController * + * @package Chill\EventBundle\Controller */ -class RoleController extends Controller +class RoleController extends AbstractController { /** diff --git a/Controller/StatusController.php b/Controller/StatusController.php index 9147a89b8..be20fbf49 100644 --- a/Controller/StatusController.php +++ b/Controller/StatusController.php @@ -2,18 +2,19 @@ namespace Chill\EventBundle\Controller; +use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\HttpFoundation\Request; -use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Chill\EventBundle\Entity\Status; use Chill\EventBundle\Form\StatusType; /** - * Status controller. + * Class StatusController * + * @package Chill\EventBundle\Controller */ -class StatusController extends Controller +class StatusController extends AbstractController { /**