-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Show a more real example in data collectors doc #5774
Conversation
wouterj
commented
Oct 10, 2015
Q | A |
---|---|
Doc fix? | yes |
New docs? | no |
Applies to | 2.3+ |
Fixed tickets | - |
* @param Request $request A Request instance | ||
* @param Response $response A Response instance | ||
* @param \Exception $exception An Exception instance | ||
*/ |
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.
Removed the PHPdoc as I don't think it's very usefull (short descriptions are better described directly after the code example and the typehint already shows which instances are passed).
In case people want to know the PHPdoc, they can now click on the API links below the example.
properties. | ||
The | ||
:method:`Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface::getName` | ||
method returns the name of the data collector and must be unique in the |
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.
... unique within
... ?
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.
unique within data collector names. But yeah, the message could be improved
Status: Reviewed |
<b>Another piece of data</b> | ||
<span>300 units</span> | ||
<b>Accepted content type</b> | ||
<span>{{ collector.acceptablecontenttypes|join(', ') }}</span> |
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.
collector.acceptableContentTypes
is more readable
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.
fixed!
This is so much better. Thanks for fixing my ridiculous example from many years ago - real examples ftw! |
This PR was merged into the 2.3 branch. Discussion ---------- Show a more real example in data collectors doc | Q | A | --- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3+ | Fixed tickets | - Commits ------- 5e2c1af Show a more real example in data collectors doc