Skip to content

Commit 5190b5e

Browse files
author
elescot
committed
Refactor documentation assuming we use Symfony Flex
1 parent e1521a0 commit 5190b5e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

best_practices/controllers.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@ this suffix is neither required nor recommended, so you can safely remove it.
4747
Routing Configuration
4848
---------------------
4949

50-
To load routes defined as annotations in your controllers and if you are not using Symfony Flex, add the following
51-
configuration to the annotation routing configuration file:
50+
To load routes defined as annotations in your controllers, run the following command :
51+
52+
.. code-block:: terminal
53+
54+
$ composer require doctrine/annotations
55+
56+
Thanks to the :doc:`Flex recipe</setup/flex>`, a ``config/routes/annotations.yaml`` file will be created:
5257

5358
.. code-block:: yaml
5459

0 commit comments

Comments
 (0)