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

Fixed Request Factory Example #6939

Closed
wants to merge 1 commit into from
Closed

Fixed Request Factory Example #6939

wants to merge 1 commit into from

Conversation

vdambeck
Copy link
Contributor

@vdambeck vdambeck commented Sep 1, 2016

The Request Factory Example dosen't work anymore.
I change the example code. So it will work now.

Copy link

@roman-1983 roman-1983 left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@HeahDude HeahDude left a 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(
Copy link
Contributor

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

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?

@xabbuh
Copy link
Member

xabbuh commented Mar 13, 2017

Thank you @vdambeck.

xabbuh added a commit that referenced this pull request Mar 13, 2017
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
xabbuh added a commit that referenced this pull request Mar 13, 2017
@xabbuh xabbuh closed this Mar 13, 2017
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.

5 participants