-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Replace remaining annotations with attributes, remove remaining annotations configuration block #17223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace remaining annotations with attributes, remove remaining annotations configuration block #17223
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,8 +81,8 @@ with the ``User`` class:: | |
} | ||
} | ||
|
||
Beware that this feature is already provided by the `@ParamConverter`_ | ||
annotation from the SensioFrameworkExtraBundle. If you have that bundle | ||
Beware that this feature is already provided by the `#[ParamConverter]`_ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we refer to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, I would be in favor of changing the whole Custom Value Resolver example because there is already a native UserValueResolver. But I don't know what could be used instead! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's keep it as is then for now and rethink the whole example in a different PR. |
||
attribute from the SensioFrameworkExtraBundle. If you have that bundle | ||
installed in your project, add this config to disable the auto-conversion of | ||
type-hinted method arguments: | ||
|
||
|
@@ -253,7 +253,7 @@ To ensure your resolvers are added in the right position you can run the followi | |
command to see which argument resolvers are present and in which order they run. | ||
|
||
.. code-block:: terminal | ||
|
||
$ php bin/console debug:container debug.argument_resolver.inner --show-arguments | ||
|
||
.. tip:: | ||
|
@@ -267,5 +267,5 @@ command to see which argument resolvers are present and in which order they run. | |
$user = null``). The ``DefaultValueResolver`` is executed as the last | ||
resolver and will use the default value if no value was already resolved. | ||
|
||
.. _`@ParamConverter`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html | ||
.. _`#[ParamConverter]`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html | ||
.. _`yield`: https://www.php.net/manual/en/language.generators.syntax.php |
Uh oh!
There was an error while loading. Please reload this page.