Events\Manager

Class Phalcon\Events\Manager

implements Phalcon\Events\ManagerInterface

Phalcon Events Manager, offers an easy way to intercept and manipulate, if needed, the normal flow of operation. With the EventsManager the developer can create hooks or plugins that will offer monitoring of data, manipulation, conditional execution and much more.

Methods

public attach (string $eventType, object|callable $handler)

Attach a listener to the events manager

public enablePriorities (boolean $enablePriorities)

Set if priorities are enabled in the EventsManager

public boolean 登录查看完整内容