@@ -22,9 +22,9 @@ text content::
22
22
// src/AppBundle/Controller/DefaultController.php
23
23
namespace AppBundle\Controller;
24
24
25
- use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
26
25
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
27
26
use Symfony\Component\HttpFoundation\Response;
27
+ use Symfony\Component\Routing\Annotation\Route;
28
28
29
29
class DefaultController extends Controller
30
30
{
@@ -57,8 +57,8 @@ a new method called ``helloAction()`` with the following content::
57
57
// src/AppBundle/Controller/DefaultController.php
58
58
namespace AppBundle\Controller;
59
59
60
- use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
61
60
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
61
+ use Symfony\Component\Routing\Annotation\Route;
62
62
63
63
class DefaultController extends Controller
64
64
{
@@ -114,8 +114,7 @@ Tweak the ``hello`` route by adding a new ``_format`` variable with ``html``
114
114
as its default value::
115
115
116
116
// src/AppBundle/Controller/DefaultController.php
117
- use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
118
- use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
117
+ use Symfony\Component\Routing\Annotation\Route;
119
118
120
119
// ...
121
120
@@ -153,8 +152,7 @@ To restrict the formats supported by a given action, use the ``requirements``
153
152
option of the ``@Route() `` annotation::
154
153
155
154
// src/AppBundle/Controller/DefaultController.php
156
- use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
157
- use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
155
+ use Symfony\Component\Routing\Annotation\Route;
158
156
159
157
// ...
160
158
@@ -254,9 +252,9 @@ forget to add the new ``use`` statement that imports this ``Request`` class)::
254
252
// src/AppBundle/Controller/DefaultController.php
255
253
namespace AppBundle\Controller;
256
254
257
- use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
258
255
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
259
256
use Symfony\Component\HttpFoundation\Request;
257
+ use Symfony\Component\Routing\Annotation\Route;
260
258
261
259
class DefaultController extends Controller
262
260
{
0 commit comments