Replace deprecated extends Controller by AbstractController

This commit is contained in:
Mathieu Jaumotte 2021-02-01 18:17:33 +01:00
parent 1c4f789414
commit f4a2ab67c2
2 changed files with 14 additions and 6 deletions

View File

@ -3,7 +3,7 @@
namespace Chill\TaskBundle\Controller; namespace Chill\TaskBundle\Controller;
use Chill\PersonBundle\Privacy\PrivacyEvent; use Chill\PersonBundle\Privacy\PrivacyEvent;
use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Routing\Annotation\Route;
use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManager;
use Chill\PersonBundle\Entity\Person; use Chill\PersonBundle\Entity\Person;
@ -29,8 +29,12 @@ use Chill\TaskBundle\Event\UI\UIEvent;
use Chill\MainBundle\Repository\CenterRepository; use Chill\MainBundle\Repository\CenterRepository;
use Chill\MainBundle\Timeline\TimelineBuilder; use Chill\MainBundle\Timeline\TimelineBuilder;
/**
class SingleTaskController extends Controller * Class SingleTaskController
*
* @package Chill\TaskBundle\Controller
*/
class SingleTaskController extends AbstractController
{ {
/** /**

View File

@ -2,7 +2,7 @@
namespace Chill\TaskBundle\Controller; namespace Chill\TaskBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Chill\TaskBundle\Repository\SingleTaskRepository; use Chill\TaskBundle\Repository\SingleTaskRepository;
use Chill\TaskBundle\Security\Authorization\TaskVoter; use Chill\TaskBundle\Security\Authorization\TaskVoter;
use Symfony\Component\Workflow\Registry; use Symfony\Component\Workflow\Registry;
@ -17,8 +17,12 @@ use Chill\TaskBundle\Entity\AbstractTask;
use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Workflow\Transition; use Symfony\Component\Workflow\Transition;
/**
class TaskController extends Controller * Class TaskController
*
* @package Chill\TaskBundle\Controller
*/
class TaskController extends AbstractController
{ {
/** /**
* Apply a transition to a task * Apply a transition to a task