Replace deprecated extends Controller by AbstractController

This commit is contained in:
Mathieu Jaumotte 2021-02-01 18:17:33 +01:00
parent 041627cd77
commit 22efcf0c1d
5 changed files with 14 additions and 13 deletions

View File

@ -26,7 +26,7 @@ use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
use Chill\PersonBundle\Privacy\PrivacyEvent;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Security\Core\Role\Role;
use Chill\ActivityBundle\Entity\Activity;
@ -34,10 +34,11 @@ use Chill\PersonBundle\Entity\Person;
use Chill\ActivityBundle\Form\ActivityType;
/**
* Activity controller.
* Class ActivityController
*
* @package Chill\ActivityBundle\Controller
*/
class ActivityController extends Controller
class ActivityController extends AbstractController
{
/**

View File

@ -2,8 +2,8 @@
namespace Chill\ActivityBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Chill\ActivityBundle\Entity\ActivityReasonCategory;
@ -13,7 +13,7 @@ use Chill\ActivityBundle\Form\ActivityReasonCategoryType;
* ActivityReasonCategory controller.
*
*/
class ActivityReasonCategoryController extends Controller
class ActivityReasonCategoryController extends AbstractController
{
/**

View File

@ -2,8 +2,8 @@
namespace Chill\ActivityBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Chill\ActivityBundle\Entity\ActivityReason;
@ -13,7 +13,7 @@ use Chill\ActivityBundle\Form\ActivityReasonType;
* ActivityReason controller.
*
*/
class ActivityReasonController extends Controller
class ActivityReasonController extends AbstractController
{
/**

View File

@ -3,17 +3,17 @@
namespace Chill\ActivityBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Chill\ActivityBundle\Entity\ActivityType;
use Chill\ActivityBundle\Form\ActivityTypeType;
/**
* ActivityType controller.
* Class ActivityTypeController
*
* @package Chill\ActivityBundle\Controller
*/
class ActivityTypeController extends Controller
class ActivityTypeController extends AbstractController
{
/**

View File

@ -21,7 +21,7 @@
namespace Chill\ActivityBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
/**
* Controller for activity configuration
@ -29,7 +29,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
* @author Julien Fastré <julien.fastre@champs-libres.coop>
* @author Champs Libres <info@champs-libres.coop>
*/
class AdminController extends Controller
class AdminController extends AbstractController
{
public function indexActivityAction()
{