# PluggableHooksInterface

Chevere\Interfaces\Pluggable\Plug\Hook\PluggableHooksInterface

view source

# Description

Describes the interface for components requiring to implement pluggable hooks.

# Methods

# getHookAnchors()

Returns the declared hook anchors able to plug.


# withHooksRunner()

Return an instance with the specified $runner.

# Parameters

  1. HooksRunnerInterface $runner

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 hooks.


# hook()

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

# Parameters

  1. string $anchor
  2. $argument

RETURN

void


Last Updated: 1/16/2021, 9:23:54 PM