[Console] Remove "php" invokation from help messages. #38397
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Discusstion started here:
#38349
I was a bit puzzled to find that the help for the list and help commands suggests that you call the console application by prefixing it with
php myconsoleapp
.As suggested in the PR above I am removing the
php
prefix from the help.I am providing a script with a shebang like the first example suggested in the following link:
https://symfony.com/doc/current/components/console.html
Eventually I want to distribute my console app as docker image so there is no need for php installed or the users even knowing is written in php.
The script name is easy to override by just setting a different value to
$_SERVER['PHP_SELF']
but this php prefix is hardcoded into the help strings for the the two default commands available.Slightly related to #38347 as I am trying to improve the console help output.