Documentation

ConsoleEvents
in package

FinalYes

Contains all events dispatched by an Application.

Tags
author

Francesco Levorato git@flevour.net

Table of Contents

Constants

COMMAND  = 'console.command'
The COMMAND event allows you to attach listeners before any command is executed by the console. It also allows you to modify the command, input and output before they are handled to the command.
ERROR  = 'console.error'
The ERROR event occurs when an uncaught exception or error appears.
EXCEPTION  = 'console.exception'
The EXCEPTION event occurs when an uncaught exception appears while executing Command#run().
TERMINATE  = 'console.terminate'
The TERMINATE event allows you to attach listeners after a command is executed by the console.

Constants

COMMAND

The COMMAND event allows you to attach listeners before any command is executed by the console. It also allows you to modify the command, input and output before they are handled to the command.

public string COMMAND = 'console.command'
Tags
Event

("Symfony\Component\Console\Event\ConsoleCommandEvent")

ERROR

The ERROR event occurs when an uncaught exception or error appears.

public string ERROR = 'console.error'

This event allows you to deal with the exception/error or to modify the thrown exception.

Tags
Event

("Symfony\Component\Console\Event\ConsoleErrorEvent")

EXCEPTION

The EXCEPTION event occurs when an uncaught exception appears while executing Command#run().

The console.exception event is deprecated since version 3.3 and will be removed in 4.0. Use the console.error event instead.

public string EXCEPTION = 'console.exception'

This event allows you to deal with the exception or to modify the thrown exception.

Tags
Event

("Symfony\Component\Console\Event\ConsoleExceptionEvent")

TERMINATE

The TERMINATE event allows you to attach listeners after a command is executed by the console.

public string TERMINATE = 'console.terminate'
Tags
Event

("Symfony\Component\Console\Event\ConsoleTerminateEvent")


        
On this page

Search results