-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Update controller.rst #4747
Update controller.rst #4747
Conversation
ifdattic
commented
Jan 3, 2015
Q | A |
---|---|
Doc fix? | yes |
New docs? | no |
Applies to | 2.3 |
Fixed tickets |
@@ -5,7 +5,7 @@ Controller | |||
========== | |||
|
|||
A controller is a PHP function you create that takes information from the | |||
HTTP request and constructs and returns an HTTP response (as a Symfony | |||
HTTP request to construct and return an HTTP response (as a Symfony |
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.
I'm not so sure about this change.
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.
What about "to create and return"?
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.
Well, it's more about grammar than word usage. I think A controller is still the one doing stuff:
A controller:
- takes information from the HTTP request
- constructs an HTTP response
- returns the HTTP response
So imo, it's still "takes information from the HTTP request and creates and returns an HTTP response".
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.
Indeed, sounds better this way.
ping @ifdattic :) |
@xabbuh should I revert line 8? |
rebased this PR in #5143 Thanks! |