Closed
Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | yes |
RFC? | no |
Symfony version | 3.3 |
#18140 introduced a ConsoleErrorEvent to replace the exception event, catching both errors and exceptions in Application
.
Problem
We lost all the benefit of using the Debug component along with the Console one (using the fullstack framework included): the DebugHandlersListener
is no more reached, making the following code useless https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php#L107-L116
Also, any custom error handler in userland will no more be called.
Example using the fullstack
public function execute(InputInterface $input, OutputInterface $output)
{
$this->foo();
}
public function fooo()
{
}
Before 3.3
After
Possible solutions
Dunno yet. We definitely need a way to give errors to the error handler if any.
/cc @ogizanagi who reported the issue in #20808 (comment) which hasn't received any answer at the moment.
Metadata
Metadata
Assignees
Labels
No labels