Skip to content

Commit 2cff7a4

Browse files
committed
minor #14400 [Routing] Better use of composer require (Nyholm)
This PR was squashed before being merged into the 5.x branch. Discussion ---------- [Routing] Better use of composer require For Symfony 4.4 This will correct the mistake in #14387 If we still want to use the alias, please consider this PR: #14399 Commits ------- 41b7983 [Routing] Better use of composer require
2 parents 588e78b + 41b7983 commit 2cff7a4

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)