ConsoleEvents

ConsoleEvents

class ConsoleEvents

Contains all events dispatched by an Application.

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.

TERMINATE

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

EXCEPTION

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

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

ERROR

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

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Console/ConsoleEvents.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部