Replies: 3 comments 5 replies
-
No. |
Beta Was this translation helpful? Give feedback.
-
I think you can find some explanations in here https://symfony.com/doc/current/setup/symfony_server.html. There is a warning starting by "When using the Symfony binary with php bin/console (symfony console ...), the binary will always use environment variables detected via Docker and will ignore local environment variables." |
Beta Was this translation helpful? Give feedback.
-
Here's the answer: https://github.com/symfony-cli/symfony-cli/blob/main/main.go#L73. It seems that what the Symfony CLI is doing is calling |
Beta Was this translation helpful? Give feedback.
-
It seems that
symfony console
is just an alias forphp bin/console
or simplybin/console
because of the hash bang#!/usr/bin/env php
at the top of that file). Is this correct?Using
diff
to check their differencesdiff <(symfony console) <(php bin/console)
returns nothing.I suppose there's no preference and we can just use whatever we want, but I wonder why there's this alias, as this may create confusion
Beta Was this translation helpful? Give feedback.
All reactions