Skip to content

[DependencyInjection][Fix] Missing RequestStack #7447

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

Merged
merged 1 commit into from
Feb 19, 2017
Merged

Conversation

20uf
Copy link
Contributor

@20uf 20uf commented Feb 5, 2017

Hello,

Since the 2.8 the RouterListener object needs the RequestStack object for the second argument.
It was optional until version 3.0, eg:

As you can see, it lacks in the following example and causes a significant error:

Regards,

Hello,

Since the 2.8 the RouterListener object needs the RequestStack object for the second argument.

As you may notice it is missing in the following example: 
- http://symfony.com/doc/current/create_framework/dependency_injection.html

Regards,
@xabbuh
Copy link
Member

xabbuh commented Feb 6, 2017

👍

Status: Reviewed

@20uf
Copy link
Contributor Author

20uf commented Feb 13, 2017

Hello @javiereguiluz,

Do you approve of this PR?

Regards,

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

👍

@20uf thanks for catching this issue!

@xabbuh
Copy link
Member

xabbuh commented Feb 19, 2017

Thank you @20uf.

@xabbuh xabbuh merged commit 823b3b0 into symfony:3.2 Feb 19, 2017
xabbuh added a commit that referenced this pull request Feb 19, 2017
This PR was merged into the 3.2 branch.

Discussion
----------

[DependencyInjection][Fix] Missing RequestStack

Hello,

Since the 2.8 the RouterListener object needs the RequestStack object for the second argument.
It was optional until version 3.0, eg:
- http://api.symfony.com/2.8/Symfony/Component/HttpKernel/EventListener/RouterListener.html
- http://api.symfony.com/3.0/Symfony/Component/HttpKernel/EventListener/RouterListener.html

As you can see, it lacks in the following example and causes a significant error:
- http://symfony.com/doc/current/create_framework/dependency_injection.html

Regards,

Commits
-------

823b3b0 [DependencyInjection][Fix] Missing RequestStack
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.

4 participants