Skip to content

Commit 79b2254

Browse files
ycerutoxabbuh
authored andcommitted
Fix routing order formats
1 parent 77d7f7f commit 79b2254

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

controller/service.rst

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,12 @@ syntax:
2424

2525
.. configuration-block::
2626

27-
.. code-block:: yaml
28-
29-
# app/config/routing.yml
30-
hello:
31-
path: /hello
32-
defaults: { _controller: app.hello_controller:indexAction }
33-
3427
.. code-block:: php-annotations
3528
36-
# src/AppBundle/Controller/HelloController.php
29+
// src/AppBundle/Controller/HelloController.php
3730
// ...
31+
32+
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
3833
3934
/**
4035
* @Route(service="app.hello_controller")
@@ -44,6 +39,13 @@ syntax:
4439
// ...
4540
}
4641
42+
.. code-block:: yaml
43+
44+
# app/config/routing.yml
45+
hello:
46+
path: /hello
47+
defaults: { _controller: app.hello_controller:indexAction }
48+
4749
.. code-block:: xml
4850
4951
<!-- app/config/routing.xml -->

0 commit comments

Comments
 (0)