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

Commit 7ae794b

Browse files
SimonVanherweghedbu
authored andcommitted
Use statement for Template annotation
1 parent e292d99 commit 7ae794b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tutorial/content-to-controllers.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Map the ``$routes`` property to contain a collection of all the routes which ref
1515
document::
1616

1717
// src/AcmeBundle/BasicCmsBundle/Document/ContentTrait.php
18-
18+
1919
// ...
2020
trait ContentTrait
2121
{
@@ -99,6 +99,8 @@ object and all the ``Posts`` to the view::
9999
// src/Acme/BasicCmsBundle/Controller/DefaultController.php
100100

101101
// ...
102+
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
103+
102104
class DefaultController extends Controller
103105
{
104106
// ...

0 commit comments

Comments
 (0)