File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ once in your application to enable them:
33
33
34
34
.. code-block :: terminal
35
35
36
- $ composer require annotations
36
+ $ composer require doctrine/ annotations
37
37
38
38
.. versionadded :: 5.2
39
39
@@ -1063,12 +1063,11 @@ integer acting as the user ID) into another value (e.g. the object that
1063
1063
represents the user). This feature is called "param converter" and is only
1064
1064
available when using annotations to define routes.
1065
1065
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:
1068
1067
1069
1068
.. code-block :: terminal
1070
1069
1071
- $ composer require annotations
1070
+ $ composer require sensio/framework-extra-bundle
1072
1071
1073
1072
Now, keep the previous route configuration, but change the arguments of the
1074
1073
controller action. Instead of ``string $slug ``, add ``BlogPost $post ``::
You can’t perform that action at this time.
0 commit comments