Skip to content

Improve the checking if the current request is a master request in the ControllerListener. #70

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

Conversation

voronkovich
Copy link
Contributor

There is a more convenient way to check whether the current request is a master request. See http://api.symfony.com/2.7/Symfony/Component/HttpKernel/Event/KernelEvent.html#method_isMasterRequest

@javiereguiluz
Copy link
Member

@voronkovich thanks for this improvement. I do agree with you that this proposal is much better. You don't need to know the internal Symfony details when you are learning Symfony.

In any case, before merging it, I'll wait a bit so others can comment if they don't agree or see some drawback. Cheers!

@JulienItard
Copy link
Contributor

I agree with it because it's more readable and less "frigthening" for beginners.

@weaverryan
Copy link
Member

👍

@javiereguiluz
Copy link
Member

@voronkovich thanks for helping us improve the code of the Symfony Demo application!

@javiereguiluz javiereguiluz merged commit a90021f into symfony:master May 26, 2015
javiereguiluz added a commit that referenced this pull request May 26, 2015
…uest in the ControllerListener. (voronkovich)

This PR was merged into the master branch.

Discussion
----------

Improve the checking if the current request is a master request in the ControllerListener.

There is a more convenient way to check whether the current request is a master request. See http://api.symfony.com/2.7/Symfony/Component/HttpKernel/Event/KernelEvent.html#method_isMasterRequest

Commits
-------

a90021f Improve the checking if the current request is a master request in the ControllerListener
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants