Skip to content

[Cookbook][Configuration] Fix front controller sample codes #3245

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
Dec 1, 2013
Merged

[Cookbook][Configuration] Fix front controller sample codes #3245

merged 1 commit into from
Dec 1, 2013

Conversation

bicpi
Copy link
Contributor

@bicpi bicpi commented Nov 30, 2013

Q A
Doc fix? yes
New docs? no
Applies to 2.2+
Fixed tickets -
  • The code examples for the prod and benchmark front controller were still using 2.0 code.
  • Before the benchmark front controller it says Copy the web/app.php ... but then the code differs from the app.php not only in the enironment key.

I thought about removing the comments about caching to keep the code short. But then you would maybe wonder about the $loader variable declaration. Morover, the text says If you open up one of these files ..., so maybe it's better to show the file as is when you open it.

weaverryan added a commit that referenced this pull request Dec 1, 2013
[Cookbook][Configuration] Fix front controller sample codes
@weaverryan weaverryan merged commit 22e7767 into symfony:2.2 Dec 1, 2013
weaverryan added a commit that referenced this pull request Dec 1, 2013
This removes code that could easily become out of date again. Also, I don't think
it was necessary - we want to focus them on only one line anyways.
@weaverryan
Copy link
Member

Hey Philipp!

Ah, thanks for catching this out of date code! I read through the section, and I don't think that the code is really necessary at all. We're focusing them on the new AppKernel line, so I don't feel that anything is lost by only showing this. So, I've changed things further at sha: 21dc1f0. If you have any issues with this, let me know!

Thanks!

@bicpi bicpi deleted the fix_front_controller_code branch January 5, 2014 13:23
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.

2 participants