Replace deprecated extends Controller by AbstractController

This commit is contained in:
Mathieu Jaumotte 2021-02-01 18:17:33 +01:00
parent 99e2712cbc
commit 8029b9b8ff
6 changed files with 23 additions and 20 deletions

View File

@ -20,15 +20,15 @@
namespace Chill\EventBundle\Controller; namespace Chill\EventBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
/** /**
* Controller for the event configuration section (in * Class AdminController
* the admin) * Controller for the event configuration section (in admin section)
* *
* @package Chill\EventBundle\Controller
*/ */
class AdminController extends Controller class AdminController extends AbstractController
{ {
public function indexAction() public function indexAction()
{ {

View File

@ -29,6 +29,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Csv; use PhpOffice\PhpSpreadsheet\Writer\Csv;
use PhpOffice\PhpSpreadsheet\Writer\Ods; use PhpOffice\PhpSpreadsheet\Writer\Ods;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx; use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\HttpFoundation\StreamedResponse; use Symfony\Component\HttpFoundation\StreamedResponse;
use Chill\EventBundle\Security\Authorization\EventVoter; use Chill\EventBundle\Security\Authorization\EventVoter;
@ -37,7 +38,6 @@ use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Privacy\PrivacyEvent; use Chill\PersonBundle\Privacy\PrivacyEvent;
use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Chill\PersonBundle\Form\Type\PickPersonType; use Chill\PersonBundle\Form\Type\PickPersonType;
use Chill\EventBundle\Entity\Event; use Chill\EventBundle\Entity\Event;
use Chill\EventBundle\Form\EventType; 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 * @var EventDispatcherInterface

View File

@ -2,18 +2,19 @@
namespace Chill\EventBundle\Controller; namespace Chill\EventBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Chill\EventBundle\Entity\EventType; use Chill\EventBundle\Entity\EventType;
use Chill\EventBundle\Form\EventTypeType; use Chill\EventBundle\Form\EventTypeType;
/** /**
* EventType controller. * Class EventTypeController
* *
* @package Chill\EventBundle\Controller
*/ */
class EventTypeController extends Controller class EventTypeController extends AbstractController
{ {
/** /**

View File

@ -21,7 +21,7 @@ namespace Chill\EventBundle\Controller;
use ArrayIterator; use ArrayIterator;
use Chill\EventBundle\Entity\Event; 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\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Chill\EventBundle\Entity\Participation; use Chill\EventBundle\Entity\Participation;
@ -36,7 +36,7 @@ use Symfony\Component\Form\Extension\Core\Type\CollectionType;
* @package Chill\EventBundle\Controller * @package Chill\EventBundle\Controller
* @author Julien Fastré <julien.fastre@champs-libres.coop> * @author Julien Fastré <julien.fastre@champs-libres.coop>
*/ */
class ParticipationController extends Controller class ParticipationController extends AbstractController
{ {
/** /**

View File

@ -2,18 +2,18 @@
namespace Chill\EventBundle\Controller; namespace Chill\EventBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Chill\EventBundle\Entity\Role; use Chill\EventBundle\Entity\Role;
use Chill\EventBundle\Form\RoleType; use Chill\EventBundle\Form\RoleType;
/** /**
* Role controller. * Class RoleController
* *
* @package Chill\EventBundle\Controller
*/ */
class RoleController extends Controller class RoleController extends AbstractController
{ {
/** /**

View File

@ -2,18 +2,19 @@
namespace Chill\EventBundle\Controller; namespace Chill\EventBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Chill\EventBundle\Entity\Status; use Chill\EventBundle\Entity\Status;
use Chill\EventBundle\Form\StatusType; use Chill\EventBundle\Form\StatusType;
/** /**
* Status controller. * Class StatusController
* *
* @package Chill\EventBundle\Controller
*/ */
class StatusController extends Controller class StatusController extends AbstractController
{ {
/** /**