8000 Feature Request / Console / ConsoleEvents::STOP · Issue #33411 · symfony/symfony · GitHub
[go: up one dir, main page]

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 2E93 milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0