Skip to content

Fix wrong env variable name #18619

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
Aug 10, 2023
Merged

Fix wrong env variable name #18619

merged 1 commit into from
Aug 10, 2023

Conversation

dellamowica
Copy link
Contributor

fix a copy/paste typo

@javiereguiluz
Copy link
Member

I see this might look a bit confusing, but in this very same example, we include the following a few lines above:

if (isset($_ENV['BOOTSTRAP_CLEAR_CACHE_ENV'])) {

So, I think this might be correct. But it's true that it can be confusing because "Bootstrap" looks like something related to the Bootstrap CSS framework instead of the Symfony bootstrap process 🤔

@dellamowica
Copy link
Contributor Author

yes it's a bit confusing, like why clearing the cache of another environnement than the testing environnement :D
I understood that BOOTSTRAP_CLEAR_CACHE_ENV was more like a boolean toggling a clear cache during tests if set in the phpunit.xml file

@javiereguiluz
Copy link
Member

I'm not sure what to do here. Let's ask @wouterj to see if he can come up with a better name or has any other suggestion. Thanks!

@wouterj
Copy link
Member

wouterj commented Aug 9, 2023

I'm fine with not using the custom variable here. Using a different environment for the application is not that common, so let's make the example easier (if you need advanced stuff, you can probably come up with the solution yourself).

But this means we must also remove the if statement lines, and lines 51 - 67 (where we talk about configuring the custom env var).

Can you update this PR with these changes, @dellamowica? (you can do so by creating a new commit on your patch-1 branch)

@dellamowica
Copy link
Contributor Author

done ;-)

Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

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

Thank you!

I've left one last suggestion, but we can also fix it during the merge.

@javiereguiluz
Copy link
Member

@dellamowica thanks for this contribution and for your patience during the review process (thanks to reviewers too!). Also, congrats on your first Symfony Docs contribution 🎉

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