Events\Manager

Class Phalcon\Events\Manager

implements Phalcon\Events\ManagerInterface

Source on GitHub

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, [int $priority])

Attach a listener to the events manager

登录查看完整内容