Skip to content

Commit ba1f6dd

Browse files
committed
Added comment about sensio framework extra
1 parent f5e59ea commit ba1f6dd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

routing.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,12 +1063,11 @@ integer acting as the user ID) into another value (e.g. the object that
10631063
represents the user). This feature is called "param converter" and is only
10641064
available when using annotations to define routes.
10651065

1066-
In case you didn't run this command before, run it now to add support for
1067-
annotations and "param converters":
1066+
To add support for "param converters" we need SensioFrameworkExtraBundle:
10681067

10691068
.. code-block:: terminal
10701069
1071-
$ composer require annotations
1070+
$ composer require sensio/framework-extra-bundle
10721071
10731072
Now, keep the previous route configuration, but change the arguments of the
10741073
controller action. Instead of ``string $slug``, add ``BlogPost $post``::

0 commit comments

Comments
 (0)