# PluggableEventsInterface

Chevere\Interfaces\Pluggable\Plug\Event\PluggableEventsInterface

view source (opens new window)

# Description

Describes the interface for components requiring to implement pluggable events.

# Methods

# getEventAnchors

Returns the declared event anchors able to plug.


# withEventsRunner

Return an instance with the specified $runner.

Parameters

Return

self

This method MUST retain the state of the current instance, and return an instance that contains the specified $runner.

This method should be implemented in the runtime strategy before running events.


# event

Run events for the given anchor (if-any).

Parameters

  • anchor: string
  • data: array

Return

void


Last Updated: 5/1/2021, 2:31:10 PM