Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ErrorHandler for CLI usage #4

Open
PowerKiKi opened this issue Apr 9, 2021 · 0 comments
Open

ErrorHandler for CLI usage #4

PowerKiKi opened this issue Apr 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@PowerKiKi
Copy link
Member

PowerKiKi commented Apr 9, 2021

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 */ });
@PowerKiKi PowerKiKi added the enhancement New feature or request label Apr 9, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant