Skip to content

[Console] Returns wrong hinted "command" in output when called via Symfony CLI #46705

Closed as not planned
@chii0815

Description

@chii0815

Symfony version(s) affected

4.4 maybe lower

Description

When running a console command via symfony cli the console returns a hint with the bin/console command.
Running symfony console make:migration returns an output with an hinted next command php bin/console doctrine:migrations:migrate. Expected would be symfony console doctrine:migrations:migrate.
As this happens not just on make: commands it maybe something that could be fixed on the console component.

How to reproduce

$ symfony console make:migration

Success!

Next: Review the new migration "migrations/Version20220617164704.php"
Then: Run the migration with php bin/console doctrine:migrations:migrate
See https://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html

Possible Solution

Make console component aware of called via symfony cli.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions