Skip to content

Commit be04c3b

Browse files
committed
[DX] Extends base controller Symfony class instead of ContainerAware
1 parent ba3e099 commit be04c3b

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

Controller/ChangePasswordController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use FOS\UserBundle\Event\FilterUserResponseEvent;
1717
use FOS\UserBundle\Event\GetResponseUserEvent;
1818
use FOS\UserBundle\Model\UserInterface;
19-
use Symfony\Component\DependencyInjection\ContainerAware;
19+
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
2020
use Symfony\Component\HttpFoundation\Request;
2121
use Symfony\Component\HttpFoundation\RedirectResponse;
2222
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
@@ -27,7 +27,7 @@
2727
* @author Thibault Duplessis <[email protected]>
2828
* @author Christophe Coevoet <[email protected]>
2929
*/
30-
class ChangePasswordController extends ContainerAware
30+
class ChangePasswordController extends Controller
3131
{
3232
/**
3333
* Change user password

Controller/GroupController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use FOS\UserBundle\Event\FormEvent;
1717
use FOS\UserBundle\Event\GetResponseGroupEvent;
1818
use FOS\UserBundle\Event\GroupEvent;
19-
use Symfony\Component\DependencyInjection\ContainerAware;
19+
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
2020
use Symfony\Component\HttpFoundation\Request;
2121
use Symfony\Component\HttpFoundation\RedirectResponse;
2222
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -27,7 +27,7 @@
2727
* @author Thibault Duplessis <[email protected]>
2828
* @author Christophe Coevoet <[email protected]>
2929
*/
30-
class GroupController extends ContainerAware
30+
class GroupController extends Controller
3131
{
3232
/**
3333
* Show all groups

Controller/ProfileController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use FOS\UserBundle\Event\FilterUserResponseEvent;
1717
use FOS\UserBundle\Event\GetResponseUserEvent;
1818
use FOS\UserBundle\Model\UserInterface;
19-
use Symfony\Component\DependencyInjection\ContainerAware;
19+
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
2020
use Symfony\Component\HttpFoundation\Request;
2121
use Symfony\Component\HttpFoundation\RedirectResponse;
2222
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
@@ -26,7 +26,7 @@
2626
*
2727
* @author Christophe Coevoet <[email protected]>
2828
*/
29-
class ProfileController extends ContainerAware
29+
class ProfileController extends Controller
3030
{
3131
/**
3232
* Show the user

Controller/RegistrationController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use FOS\UserBundle\Event\GetResponseUserEvent;
1717
use FOS\UserBundle\Event\UserEvent;
1818
use FOS\UserBundle\Event\FilterUserResponseEvent;
19-
use Symfony\Component\DependencyInjection\ContainerAware;
19+
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
2020
use Symfony\Component\HttpFoundation\Request;
2121
use Symfony\Component\HttpFoundation\RedirectResponse;
2222
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -29,7 +29,7 @@
2929
* @author Thibault Duplessis <[email protected]>
3030
* @author Christophe Coevoet <[email protected]>
3131
*/
32-
class RegistrationController extends ContainerAware
32+
class RegistrationController extends Controller
3333
{
3434
public function registerAction(Request $request)
3535
{

Controller/ResettingController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use FOS\UserBundle\Event\GetResponseUserEvent;
1717
use FOS\UserBundle\Event\FilterUserResponseEvent;
1818
use FOS\UserBundle\Model\UserInterface;
19-
use Symfony\Component\DependencyInjection\ContainerAware;
19+
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
2020
use Symfony\Component\HttpFoundation\Request;
2121
use Symfony\Component\HttpFoundation\RedirectResponse;
2222
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -27,7 +27,7 @@
2727
* @author Thibault Duplessis <[email protected]>
2828
* @author Christophe Coevoet <[email protected]>
2929
*/
30-
class ResettingController extends ContainerAware
30+
class ResettingController extends Controller
3131
{
3232
/**
3333
* Request reset user password: show form

Controller/SecurityController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
namespace FOS\UserBundle\Controller;
1313

14-
use Symfony\Component\DependencyInjection\ContainerAware;
14+
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
1515
use Symfony\Component\HttpFoundation\Request;
1616
use Symfony\Component\Security\Core\SecurityContextInterface;
1717

18-
class SecurityController extends ContainerAware
18+
class SecurityController extends Controller
1919
{
2020
public function loginAction(Request $request)
2121
{

0 commit comments

Comments
 (0)