8000 feat: allow to override the path to the Symfony Console by tucksaun · Pull Request #586 · symfony-cli/symfony-cli · GitHub
[go: up one dir, main page]

Skip to content

feat: allow to override the path to the Symfony Console #586

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 2 commits into from
Mar 17, 2025

Conversation

tucksaun
Copy link
Member

When running symfony console we are currently looking for a bin/console (or app/console) file to run.
What if the user renamed this file? or if they have a non "stantard" project structure?

This PR intends to introduce a way one can override the path to the console by defining SYMFONY_CONSOLE_PATH environment variable.

Because it might be convenient to set this value in .env[.local] I’m also adding a new function in envs to lookup for a specific environment variable in dotenv.

When running `symfony console` we are currently looking for a `bin/console` or a `app/console` file to run.
What if the user renamed the file? or if they have a non "stantard" project structure?

This PR intends to introduce a way one can override the path to the console by defining `SYMFONY_CONSOLE_PATH` environment variable.
@fabpot fabpot merged commit 6925d21 into symfony-cli:main Mar 17, 2025
1 check passed
@fabpot
Copy link
Contributor
fabpot commented Mar 17, 2025

Thank you @tucksaun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0