src/mako/event/Event.php
protected function executeHandler($handler, array $parameters)
	{
		if($handler instanceof Closure)
		{
			return $this->executeClosureHandler($handler, $parameters);
		}

		$handler = $this->resolveHandler($handler);

		return $this->executeClassHandler($handler, $parameters);
	}
protected function executeHandler($handler, array $parameters)
	{
		if($handler instanceof Closure)
		{
			return $this->executeClosureHandler($handler, $parameters);
		}

		$handler = $this->resolveHandler($handler);

		return $this->executeClassHandler($handler, $parameters);
	}
protected function executeHandler ( $ handler , array $ parameters ) { if ( $ handler instanceof Closure ) { return $ this -> executeClosureHandler ( $ handler , $ parameters ) ; } $ handler = $ this -> resolveHandler ( $ handler ) ; return $ this -> executeClassHandler ( $ handler , $ parameters ) ; }
Executes the event handler and returns the response.

@param  string|\Closure $handler    Event handler
@param  array           $parameters Parameters
@return mixed
Executes the event handler and returns the response .