File tree Expand file tree Collapse file tree 11 files changed +55
-22
lines changed
Tests/Functional/Bundle/TestBundle/Controller
SecurityBundle/Tests/Functional/Bundle
CsrfFormLoginBundle/Controller
FormLoginBundle/Controller
Component/HttpKernel/Bundle Expand file tree Collapse file tree 11 files changed +55
-22
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \FrameworkBundle \Controller ;
1313
14+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
15+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
1416use Symfony \Component \HttpFoundation \Request ;
1517use Symfony \Component \HttpFoundation \Response ;
1618use Symfony \Component \HttpFoundation \RedirectResponse ;
1719use Symfony \Component \HttpFoundation \StreamedResponse ;
18- use Symfony \Component \DependencyInjection \ContainerAware ;
1920use Symfony \Component \HttpKernel \Exception \NotFoundHttpException ;
2021use Symfony \Component \HttpKernel \HttpKernelInterface ;
2122use Symfony \Component \Security \Core \Exception \AccessDeniedException ;
3536 *
3637 * @author Fabien Potencier <[email protected] > 3738 */
38- abstract class Controller extends ContainerAware
39+ abstract class Controller implements ContainerAwareInterface
3940{
41+ use ContainerAwareTrait;
42+
4043 /**
4144 * Generates a URL from the given parameters.
4245 *
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \FrameworkBundle \Controller ;
1313
14- use Symfony \Component \DependencyInjection \ContainerAware ;
14+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
15+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
1516use Symfony \Component \HttpFoundation \RedirectResponse ;
1617use Symfony \Component \HttpFoundation \Request ;
1718use Symfony \Component \HttpFoundation \Response ;
2324 *
2425 * @author Fabien Potencier <[email protected] > 2526 */
26- class RedirectController extends ContainerAware
27+ class RedirectController implements ContainerAwareInterface
2728{
29+ use ContainerAwareTrait;
30+
2831 /**
2932 * Redirects to another route with the given name.
3033 *
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \FrameworkBundle \Controller ;
1313
14- use Symfony \Component \DependencyInjection \ContainerAware ;
14+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
15+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
1516use Symfony \Component \HttpFoundation \Response ;
1617
1718/**
1819 * TemplateController.
1920 *
2021 * @author Fabien Potencier <[email protected] > 2122 */
22- class TemplateController extends ContainerAware
23+ class TemplateController implements ContainerAwareInterface
2324{
25+ use ContainerAwareTrait;
26+
2427 /**
2528 * Renders a template.
2629 *
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \FrameworkBundle \Tests \Functional \Bundle \TestBundle \Controller ;
1313
14+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
15+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
1416use Symfony \Component \HttpFoundation \Request ;
1517use Symfony \Component \HttpFoundation \Response ;
16- use Symfony \Component \DependencyInjection \ContainerAware ;
1718
18- class FragmentController extends ContainerAware
19+ class FragmentController implements ContainerAwareInterface
1920{
21+ use ContainerAwareTrait;
22+
2023 public function indexAction (Request $ request )
2124 {
2225 return $ this ->container ->get ('templating ' )->renderResponse ('fragment.html.php ' , array ('bar ' => new Bar ()));
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \FrameworkBundle \Tests \Functional \Bundle \TestBundle \Controller ;
1313
14+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
15+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
1416use Symfony \Component \HttpFoundation \Response ;
15- use Symfony \Component \DependencyInjection \ContainerAware ;
1617
17- class ProfilerController extends ContainerAware
18+ class ProfilerController implements ContainerAwareInterface
1819{
20+ use ContainerAwareTrait;
21+
1922 public function indexAction ()
2023 {
2124 return new Response ('Hello ' );
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \FrameworkBundle \Tests \Functional \Bundle \TestBundle \Controller ;
1313
14+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
15+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
1416use Symfony \Component \HttpFoundation \Request ;
1517use Symfony \Component \HttpFoundation \Response ;
1618use Symfony \Component \HttpFoundation \RedirectResponse ;
17- use Symfony \Component \DependencyInjection \ContainerAware ;
1819
19- class SessionController extends ContainerAware
20+ class SessionController implements ContainerAwareInterface
2021{
22+ use ContainerAwareTrait;
23+
2124 public function welcomeAction (Request $ request , $ name = null )
2225 {
2326 $ session = $ request ->getSession ();
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \FrameworkBundle \Tests \Functional \Bundle \TestBundle \Controller ;
1313
14+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
15+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
1416use Symfony \Component \HttpFoundation \Request ;
1517use Symfony \Component \HttpFoundation \Response ;
16- use Symfony \Component \DependencyInjection \ContainerAware ;
1718use Symfony \Component \HttpKernel \Controller \ControllerReference ;
1819
19- class SubRequestController extends ContainerAware
20+ class SubRequestController implements ContainerAwareInterface
2021{
22+ use ContainerAwareTrait;
23+
2124 public function indexAction ()
2225 {
2326 $ handler = $ this ->container ->get ('fragment.handler ' );
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \SecurityBundle \Tests \Functional \Bundle \CsrfFormLoginBundle \Controller ;
1313
14- use Symfony \Component \DependencyInjection \ContainerAware ;
14+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
15+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
1516use Symfony \Component \HttpFoundation \Response ;
1617use Symfony \Component \Security \Core \Exception \AccessDeniedException ;
1718
18- class LoginController extends ContainerAware
19+ class LoginController implements ContainerAwareInterface
1920{
21+ use ContainerAwareTrait;
22+
2023 public function loginAction ()
2124 {
2225 $ form = $ this ->container ->get ('form.factory ' )->create ('Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\CsrfFormLoginBundle\Form\UserLoginType ' );
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \SecurityBundle \Tests \Functional \Bundle \FormLoginBundle \Controller ;
1313
14+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
15+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
1416use Symfony \Component \Security \Core \Security ;
1517use Symfony \Component \HttpFoundation \Request ;
1618use Symfony \Component \HttpFoundation \Response ;
17- use Symfony \Component \DependencyInjection \ContainerAware ;
1819
19- class LocalizedController extends ContainerAware
20+ class LocalizedController implements ContainerAwareInterface
2021{
22+ use ContainerAwareTrait;
23+
2124 public function loginAction (Request $ request )
2225 {
2326 // get the login error if there is one
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \SecurityBundle \Tests \Functional \Bundle \FormLoginBundle \Controller ;
1313
14+ use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
15+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
1416use Symfony \Component \Security \Core \Exception \AccessDeniedException ;
1517use Symfony \Component \HttpFoundation \Request ;
1618use Symfony \Component \HttpFoundation \Response ;
1719use Symfony \Component \Security \Core \Security ;
18- use Symfony \Component \DependencyInjection \ContainerAware ;
1920
20- class LoginController extends ContainerAware
21+ class LoginController implements ContainerAwareInterface
2122{
23+ use ContainerAwareTrait;
24+
2225 public function loginAction (Request $ request )
2326 {
2427 // get the login error if there is one
You can’t perform that action at this time.
0 commit comments