# PluggableEventsInterface

Chevere\Interfaces\Plugin\Plugs\EventListener\PluggableEventsInterface

view source

# Description

Describes the interface for components requiring to implement pluggable events.

# Methods

# getEventAnchors()

Returns the declared event anchors able to plug.


# withEventListenersRunner()

Return an instance with the specified $runner.

# Parameters

  1. EventListenersRunnerInterface $runner

RETURN

PluggableEventsInterface

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

  1. string $anchor
  2. array $data

RETURN

void


Last Updated: 8/2/2020, 1:36:58 AM