-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
use handleRequest() instead of bind() #2974
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
xabbuh
commented
Sep 13, 2013
Q | A |
---|---|
Doc fix? | yes |
New docs? | no |
Applies to | 2.3+ |
Fixed tickets | #2969 |
#2965 should be merged before this. |
-1 for the current state. It's the component docs, we should talk about using the form component without the HttpKernel extension awell as with the HttpKernel extension. |
use Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationExtension; | ||
|
||
$formFactory = Forms::createFormFactoryBuilder() | ||
->addExtension(new HttpFoundationExtension()) |
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.
you should keep the information about the HttpFoundation integration too
So, if I understand this correctly, you'd pass the superglobals (i.e. |
@xabbuh No, when using the NativeRequestHandler, you call it without argument (or with |
Thanks for the clarification. Think I got it. But, where is the advantage on using the |
@xabbuh see the chapter of the doc describing the advantages of HttpFoundation or http://blog.servergrove.com/2013/09/23/symfony2-components-overview-httpfoundation/ for instance. |
That makes sense. Should have thought of. Would it be useful to add your explanation to this section? |
Thanks Christian! I've merged this and added a few more details about what's going on behind the scenes with the handlers (sha: 1beb526). If you see any issues, let me know or make a PR of course :). Cheers! |