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

Show a more real example in data collectors doc #5774

Merged
merged 1 commit into from
Nov 5, 2015

Conversation

wouterj
Copy link
Member

@wouterj 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
*/
Copy link
Member Author

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
Copy link
Contributor

Choose a reason for hiding this comment

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

... unique within ... ?

Copy link
Member

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

@OskarStark
Copy link
Contributor

Status: Reviewed

<b>Another piece of data</b>
<span>300 units</span>
<b>Accepted content type</b>
<span>{{ collector.acceptablecontenttypes|join(', ') }}</span>
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

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

fixed!

@weaverryan
Copy link
Member

This is so much better. Thanks for fixing my ridiculous example from many years ago - real examples ftw!

@weaverryan weaverryan merged commit 5e2c1af into symfony:2.3 Nov 5, 2015
weaverryan added a commit that referenced this pull request Nov 5, 2015
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
@wouterj wouterj deleted the pr_5592-changes branch November 5, 2015 19:12
weaverryan added a commit that referenced this pull request Nov 5, 2015
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.

6 participants