File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,12 @@ syntax:
24
24
25
25
.. configuration-block ::
26
26
27
- .. code-block :: yaml
28
-
29
- # app/config/routing.yml
30
- hello :
31
- path : /hello
32
- defaults : { _controller: app.hello_controller:indexAction }
33
-
34
27
.. code-block :: php-annotations
35
28
36
- # src/AppBundle/Controller/HelloController.php
29
+ // src/AppBundle/Controller/HelloController.php
37
30
// ...
31
+
32
+ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
38
33
39
34
/**
40
35
* @Route(service="app.hello_controller")
@@ -44,6 +39,13 @@ syntax:
44
39
// ...
45
40
}
46
41
42
+ .. code-block :: yaml
43
+
44
+ # app/config/routing.yml
45
+ hello :
46
+ path : /hello
47
+ defaults : { _controller: app.hello_controller:indexAction }
48
+
47
49
.. code-block :: xml
48
50
49
51
<!-- app/config/routing.xml -->
You can’t perform that action at this time.
0 commit comments