src/Service/Factory/Event.php
public function dispatch($name, AbstractCallback $callback, Model $model = null)
    {
        if (isset($this->register[$name]) === false) {
            // No registered handler. Early return.
            return '';
        }

        $output = '';

        // Got to handel them all.
        foreach ($this->register[$name] as $classname) {
            $output .= $this->pool->createClass($classname)->handle($callback, $model);
        }

        return $output;
    }
public function dispatch($name, AbstractCallback $callback, Model $model = null)
    {
        if (isset($this->register[$name]) === false) {
            // No registered handler. Early return.
            return '';
        }

        $output = '';

        // Got to handel them all.
        foreach ($this->register[$name] as $classname) {
            $output .= $this->pool->createClass($classname)->handle($callback, $model);
        }

        return $output;
    }
public function dispatch ( $ name , AbstractCallback $ callback , Model $ model = null ) { if ( isset ( $ this -> register [ $ name ] ) === false ) { // No registered handler. Early return. return '' ; } $ output = '' ; // Got to handel them all. foreach ( $ this -> register [ $ name ] as $ classname ) { $ output .= $ this -> pool -> createClass ( $ classname ) -> handle ( $ callback , $ model ) ; } return $ output ; }
Dispatches an event.

@param string $name
The name of the event.
@param AbstractCallback $callback
The parameters for the callback.
@param \Brainworxx\Krexx\Analyse\Model|null $model
The model so far, if available.

@return string
The generated markup from the event handlers
This will only get dispatched, if you use the start event.
Dispatches an event .