W3cubDocs

/CakePHP 4.1

Namespace Cake\Event

Classes summary

  • Event

    Class Event

  • EventManager

    The event manager is responsible for keeping track of event listeners, passing the correct data to them, and firing them in the correct order, when associated events are triggered. You can create multiple instances of this object to manage local events or keep a single instance and pass it around to manage all events in your app.

  • EventList

    The Event List

Interfaces summary

  • EventListenerInterface

    Objects implementing this interface should declare the implementedEvents function to notify the event manager what methods should be called when an event is triggered.

  • EventDispatcherInterface

    Objects implementing this interface can emit events.

  • EventInterface

    Represents the transport class of events across the system. It receives a name, subject and an optional payload. The name can be any string that uniquely identifies the event across the application, while the subject represents the object that the event applies to.

  • EventManagerInterface

    Interface EventManagerInterface

Traits summary

© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.1/namespace-Cake.Event.html