-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console][EventDispatcher][Security][Serializer][Workflow] Add PHPDoc to attribute classes and properties #51974
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
Conversation
de837c7
to
d3eccf1
Compare
src/Symfony/Component/EventDispatcher/Attribute/AsEventListener.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Workflow/Attribute/AsAnnounceListener.php
Outdated
Show resolved
Hide resolved
c3c514f
to
2fcdd38
Compare
src/Symfony/Component/EventDispatcher/Attribute/AsEventListener.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Core/Validator/Constraints/UserPassword.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Core/Validator/Constraints/UserPassword.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Core/Validator/Constraints/UserPassword.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Core/Validator/Constraints/UserPassword.php
Outdated
Show resolved
Hide resolved
2fcdd38
to
e24303f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alex, thanks a lot for taking care of improving attributes doc.
We want to make these descriptions both complete and concise. They need to be very short, but they also need to explain all the basics needed to fully understand them (what happens if I enable this? what's the format required to pass data here? etc.)
So, thanks in advance for your patience because we'll add many comments 🙏
ffdcbda
to
3adfbc6
Compare
@GromNaN I revamped the PR with the feedback that was given in the other one and by taking into account your review on this one 🙂 @javiereguiluz Thanks, I agree with every point! I updated the PR accordingly. I understand how challenging this kind of PR it is, we don't have that much "space" to explain things like in the doc 😄 |
src/Symfony/Component/Security/Core/Validator/Constraints/UserPassword.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Core/Validator/Constraints/UserPassword.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Serializer/Annotation/DiscriminatorMap.php
Outdated
Show resolved
Hide resolved
0c28525
to
aa72c94
Compare
Thanks, I addressed your comments 🙂 |
Rebase please |
70fd5d6
to
2e03065
Compare
Rebased and updated with |
d5495ac
to
b6d6cef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a general note, it'd be nice to add more titles to classes. Sometimes, this can even replace an @param
FTW
src/Symfony/Component/Workflow/Attribute/AsAnnounceListener.php
Outdated
Show resolved
Hide resolved
707ed2d
to
fa3b3e3
Compare
* @param string|Expression $attribute The attribute that will be checked against a given authentication token and optional subject | ||
* @param array|string|Expression|null $subject An optional subject - e.g. the current object being voted on | ||
* @param string|null $message A custom message when access is not granted | ||
* @param int|null $statusCode If set, will throw HttpKernel's HttpException with the given $statusCode. If null, Security\Core's AccessDeniedException will be used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param int|null $statusCode If set, will throw HttpKernel's HttpException with the given $statusCode. If null, Security\Core's AccessDeniedException will be used | |
* @param int|null $statusCode If set, will throw HttpKernel's HttpException with the given $statusCode; if null, Security\Core's AccessDeniedException will be used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated 👍
… to attribute classes and properties
fa3b3e3
to
8a2ac5a
Compare
Thank you @alexandre-daubois. |
One more round.
ℹ️ A first review of this kind is being done here, I'll adjust this PR accordingly once done 🙂