Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 6584ca5

Browse files
Use Route annotations
Without the use statement, this din't worked Also I had to set the routing.yml from the bundle to:: AcmeBasicCmsBundle: resource: "@AcmeBasicCmsBundle/Controller" type: annotation
1 parent 7a31f3f commit 6584ca5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tutorial/make-homepage.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ the page action::
329329
// src/Acme/BasicCmsBundle/Controller/DefaultController.php
330330

331331
// ...
332+
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
332333
class DefaultController extends Controller
333334
{
334335
// ...

0 commit comments

Comments
 (0)