@@ -127,16 +127,9 @@ your ``composer.json`` file to load from there:
127127 }
128128 }
129129
130- Now, suppose you want to use Twig and load routes via annotations. For annotation
131- routing, you need SensioFrameworkExtraBundle. This comes with a normal Symfony project.
132- But in this case, you need to download it:
133-
134- .. code-block :: bash
135-
136- $ composer require sensio/framework-extra-bundle
137-
138- Instead of putting *everything * in ``index.php ``, create a new ``app/AppKernel.php ``
139- to hold the kernel. Now it looks like this::
130+ Now, suppose you want to use Twig and load routes via annotations. Instead of
131+ putting *everything * in ``index.php ``, create a new ``app/AppKernel.php `` to
132+ hold the kernel. Now it looks like this::
140133
141134 // app/AppKernel.php
142135
@@ -161,7 +154,6 @@ to hold the kernel. Now it looks like this::
161154 $bundles = array(
162155 new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
163156 new Symfony\Bundle\TwigBundle\TwigBundle(),
164- new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle()
165157 );
166158
167159 if ($this->getEnvironment() == 'dev') {
@@ -209,6 +201,12 @@ to hold the kernel. Now it looks like this::
209201 }
210202 }
211203
204+
205+ .. versionadded :: 3.4
206+ Support for annotation routing without an external bundle was added in
207+ Symfony 3.4. Prior to version 3.4, you needed to install the
208+ SensioFrameworkExtraBundle.
209+
212210Unlike the previous kernel, this loads an external ``app/config/config.yml `` file,
213211because the configuration started to get bigger:
214212
@@ -261,7 +259,7 @@ has one file in it::
261259 namespace App\Controller;
262260
263261 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
264- use Sensio\Bundle\FrameworkExtraBundle\Configuration \Route;
262+ use Symfony\Component\Routing\Annotation \Route;
265263
266264 class MicroController extends Controller
267265 {
0 commit comments