Documentation

No matching pages.

API

Config

Facade

Lifecycle

Class: NullEventDispatcher

Full name: Azera\Event\NullEventDispatcher

No-op event dispatcher that returns every event unchanged.

This is the default dispatcher returned by AppContext::events() when no concrete dispatcher has been registered. It guarantees that $ctx->events()->dispatch($event) never fails even in apps that have no event listeners wired up — the cost is a single method return.

Public methods

dispatch() ·

public function dispatch(object $event): object

Parameters

Name Type Default Description
$event object -

Return value

  • Type: object

Back to the Index