Skip to content

Commit a804701

Browse files
committed
minor #8154 Fix routing order formats (yceruto)
This PR was squashed before being merged into the 3.3 branch (closes #8154). Discussion ---------- Fix routing order formats http://symfony.com/doc/current/contributing/documentation/standards.html#formats: > * Routing: Annotations, YAML, XML, PHP Also, I've added `use` statement as `service` option belong to the `Route` annotation class of `FrameworkExtraBundle`. Commits ------- 79b2254 Fix routing order formats
2 parents b29f615 + 79b2254 commit a804701

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)