Skip to content
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

Merged
merged 1 commit into from
Sep 14, 2022

Conversation

ker0x
Copy link
Contributor

@ker0x ker0x commented Aug 24, 2022

This PR replaces the last remaining annotations in the documentation with the attributes.

I think this is the last PR to fix #16877, unless I missed some other annotations.

@ker0x ker0x requested a review from xabbuh as a code owner August 24, 2022 13:55
@carsonbot carsonbot added this to the 6.0 milestone Aug 24, 2022
best_practices.rst Outdated Show resolved Hide resolved
@@ -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]`_
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we refer to the MapEntity (see symfony/symfony#43854) here instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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!

Copy link
Member

Choose a reason for hiding this comment

The 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.

xabbuh
xabbuh previously approved these changes Sep 9, 2022
@javiereguiluz javiereguiluz force-pushed the feature/various-attributes branch from 1cacb5b to 6c15670 Compare September 14, 2022 15:32
@javiereguiluz
Copy link
Member

Thank you Romain.

@javiereguiluz javiereguiluz merged commit b80b1e3 into symfony:6.0 Sep 14, 2022
javiereguiluz added a commit that referenced this pull request Nov 26, 2022
…ingne)

This PR was merged into the 6.1 branch.

Discussion
----------

[Validator] Removal code-block php-annotation

Following #17223

Commits
-------

f61ca2a [Validator] Removal code-block php-annotations
@ker0x ker0x deleted the feature/various-attributes branch December 7, 2022 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants