src/Phossa2/Route/Dispatcher.php
protected function callableWithRoute(callable $callable)/*# : bool */
    {
        /* @var EventCapableAbstract $route */
        $route = $this->result->getRoute();
        $param = ['result' => $this->result];
        if ($route->trigger(Route::EVENT_BEFORE_HANDLER, $param)) {
            call_user_func($callable, $this->result);
            $route->trigger(Route::EVENT_AFTER_HANDLER, $param);
            return true;
        }
        $this->result->setHandler(null);
        return false;
    }
protected function callableWithRoute(callable $callable)/*# : bool */
    {
        /* @var EventCapableAbstract $route */
        $route = $this->result->getRoute();
        $param = ['result' => $this->result];
        if ($route->trigger(Route::EVENT_BEFORE_HANDLER, $param)) {
            call_user_func($callable, $this->result);
            $route->trigger(Route::EVENT_AFTER_HANDLER, $param);
            return true;
        }
        $this->result->setHandler(null);
        return false;
    }
protected function callableWithRoute ( callable $ callable ) /*# : bool */ { /* @var EventCapableAbstract $route */ $ route = $ this -> result -> getRoute ( ) ; $ param = [ 'result' => $ this -> result ] ; if ( $ route -> trigger ( Route :: EVENT_BEFORE_HANDLER , $ param ) ) { call_user_func ( $ callable , $ this -> result ) ; $ route -> trigger ( Route :: EVENT_AFTER_HANDLER , $ param ) ; return true ; } $ this -> result -> setHandler ( null ) ; return false ; }
Execute the callable with route events

IF HANDLER NOT EXECUTED, REMOVE IT !!

@param  callable $callable
@return bool true if callable executed
@access protected
Execute the callable with route events