PHP Class BigName\EventDispatcher\Dispatcher

Mostra file Open project: heybigname/event-dispatcher Class Usage Examples

Public Methods

Method Description
__construct ( BigName\EventDispatcher\Containers\Container $container = null )
addLazyListener ( $name, $listener )
addListener ( $name, BigName\EventDispatcher\Listener $listener )
dispatch ( $events )
getAnyListeners ( $name )
getLazyListeners ( $name )
getListeners ( $name )
hasLazyListeners ( $name )
hasListeners ( $name )

Private Methods

Method Description
fireEvent ( BigName\EventDispatcher\Event $event )
fireEvents ( array $events )

Method Details

__construct() public method

public __construct ( BigName\EventDispatcher\Containers\Container $container = null )
$container BigName\EventDispatcher\Containers\Container

addLazyListener() public method

public addLazyListener ( $name, $listener )

addListener() public method

public addListener ( $name, BigName\EventDispatcher\Listener $listener )
$listener BigName\EventDispatcher\Listener

dispatch() public method

public dispatch ( $events )

getAnyListeners() public method

public getAnyListeners ( $name )

getLazyListeners() public method

public getLazyListeners ( $name )

getListeners() public method

public getListeners ( $name )

hasLazyListeners() public method

public hasLazyListeners ( $name )

hasListeners() public method

public hasListeners ( $name )