Skip to content

[Console] Define constants for main exit codes. #35431

@Chi-teck

Description

@Chi-teck

Description
Console commands must return exit code. I propose we define constants for most used exit statuses like it is done in C programming language.
https://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
That would make code a bit more clear.

Example
Before:
return 0;
After:
return self::EXIT_SUCCESS;

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConsoleDXDX = Developer eXperience (anything that improves the experience of using Symfony)Feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions