Closed
Description
Description
For console commands that produce temporary files, a means to hook into the early exit of a command to properly cleanup would be extra useful. Otherwise, the files linger on.
Example
$dispatcher->addListener(ConsoleEvents::STOP, function ($event){
$event->getCommand()->fileManager->removeTempFiles();
});