Skip to content

ErrorHandler for CLI usage #4

@PowerKiKi

Description

@PowerKiKi

For HTTP usage we leverage \Laminas\Stratigility\Middleware\ErrorHandler (via pipeline.php) to automatically log all kind of exception/error/warning.

We have no equivalent for CLI usage. So a CLI usage might throw an exception that might never be logged through our standard channels (db, file, emails).

We should come up with a solution to that. Either upgrade our CLI command architecture to something more integrated (laminas-cli ? Symfony Console ? something else ?) or something more custom like:

FelixCustomErrorHandler::runSafely(function() { /* command code */ });

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions