Skip to content

Feature Request / Console / ConsoleEvents::STOP #33411

Closed
@dillingham

Description

@dillingham

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();
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions