Ciconia / A New Markdown Parser for #PHP

interface EmitterInterface

Central event manager (heavily inspired by Node.js's EventEmitter)

Methods

mixed on($event, callable $callback, $priority = 10)

Adds a listener to the end of the listeners array for the specified event.

mixed emit($event, $parameters)

Execute each of the subscribed listeners

Details

at line 24 public mixed on($event, callable $callback, $priority = 10)

Adds a listener to the end of the listeners array for the specified event.

Parameters

$event
callable $callback
$priority

Return Value

mixed

at line 36 public mixed emit($event, $parameters)

Execute each of the subscribed listeners

Parameters

$event
$parameters

Return Value

mixed