PHP Class Autarky\Events\EventDispatcher

Override Symfony's class to have access to resolving classes from the container as event listeners.
Inheritance: extends Symfony\Component\EventDispatcher\EventDispatcher
Show file Open project: autarky/framework

Protected Properties

Property Type Description
$resolver ListenerResolver

Public Methods

Method Description
__construct ( ListenerResolver $resolver )
addListener ( $name, $listener, $priority )

Method Details

__construct() public method

public __construct ( ListenerResolver $resolver )
$resolver ListenerResolver

addListener() public method

The listener can be a string of 'Class:method' or just 'Class'. If no method is provided, the method 'handle' is used.
public addListener ( $name, $listener, $priority )

Property Details

$resolver protected property

protected ListenerResolver,Autarky\Events $resolver
return ListenerResolver