Skip to content

HTTP Cache - update for index.php snippet #11496

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
Apr 30, 2019
Merged

Conversation

broiniac
Copy link
Contributor

New index.php does not contains $env variable. Some developers might copy-paste blindly (like I did) and waste some time figuring-out why CacheKernel is not in use even when app is in prod.

New index.php does not contains `$env` variable. Some developers might copy-paste blindly (like I did) and waste some time figuring-out why CacheKernel is not in use even when app is in `prod`.
@broiniac broiniac changed the title Update for index.php snippet HTTP Cache - update for index.php snippet Apr 26, 2019
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.

We always follow the official Symfony recipes strictly. The recipe for index.php has changed several times ... so the current docs show an outdated version of it.

The changes made in this PR makes it again similar to the index.php file created by the official recipe. See https://github.com/symfony/recipes/blob/master/symfony/framework-bundle/4.2/public/index.php

Thanks @broiniac!

@javiereguiluz
Copy link
Member

Thanks for fixing this ... and congrats on your first Symfony Docs contribution!

@javiereguiluz javiereguiluz merged commit 660fc83 into symfony:4.2 Apr 30, 2019
javiereguiluz added a commit that referenced this pull request Apr 30, 2019
This PR was merged into the 4.2 branch.

Discussion
----------

HTTP Cache - update for index.php snippet

New index.php does not contains `$env` variable. Some developers might copy-paste blindly (like I did) and waste some time figuring-out why CacheKernel is not in use even when app is in `prod`.

Commits
-------

660fc83 Update for index.php snippet
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.

3 participants