src/Samurai/Component/Routing/Rule/Rule.php
public function toActionCaller()
    {
        $actionCaller = new ActionCaller();

        $action = $this->getAction();
        if ($action instanceof Closure)
        {
            $actionCaller->byClosure($action);
        }
        else if (is_callable($action))
        {
            $actionCaller->byCallable($action);
        }
        else
        {
        }

        return $actionCaller;
    }
public function toActionCaller()
    {
        $actionCaller = new ActionCaller();

        $action = $this->getAction();
        if ($action instanceof Closure)
        {
            $actionCaller->byClosure($action);
        }
        else if (is_callable($action))
        {
            $actionCaller->byCallable($action);
        }
        else
        {
        }

        return $actionCaller;
    }
public function toActionCaller ( ) { $ actionCaller = new ActionCaller ( ) ; $ action = $ this -> getAction ( ) ; if ( $ action instanceof Closure ) { $ actionCaller -> byClosure ( $ action ) ; } else if ( is_callable ( $ action ) ) { $ actionCaller -> byCallable ( $ action ) ; } else { } return $ actionCaller ; }
rule convert to action caller

@param   string  $path
@param   string  $method
@return  ActionCaller
rule convert to action caller