-
-
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
Fixed Request Factory Example #6939
Conversation
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.
👍
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.
Nice, thanks!
@@ -303,7 +304,7 @@ PHP callable that is able to create an instance of your ``Request`` class:: | |||
array $server = array(), | |||
$content = null | |||
) { | |||
return SpecialRequest::create( | |||
return new SpecialRequest( |
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.
Why not keeping the static method?
@@ -293,6 +293,7 @@ methods or changing some default behavior might help. In that case, register a | |||
PHP callable that is able to create an instance of your ``Request`` class:: | |||
|
|||
use Symfony\Component\HttpFoundation\Request; | |||
use AppBundle\Classes\SpecialRequest; |
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.
Maybe Http
would be more appropriate as namespace than Classes?
Thank you @vdambeck. |
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #6939). Discussion ---------- Fixed Request Factory Example The Request Factory Example dosen't work anymore. I change the example code. So it will work now. Commits ------- c877fce change request factory example code
The Request Factory Example dosen't work anymore.
I change the example code. So it will work now.