src/Route.php
public function getActionAsClosure()
    {
        if ($this->action instanceof \Closure)
        {
            return $this->action;
        }

        return function () {

            $action = $this->getActionAsCallable();

            return call_user_func_array($action, func_get_args());
        };
    }
public function getActionAsClosure()
    {
        if ($this->action instanceof \Closure)
        {
            return $this->action;
        }

        return function () {

            $action = $this->getActionAsCallable();

            return call_user_func_array($action, func_get_args());
        };
    }
public function getActionAsClosure ( ) { if ( $ this -> action instanceof \ Closure ) { return $ this -> action ; } return function ( ) { $ action = $ this -> getActionAsCallable ( ) ; return call_user_func_array ( $ action , func_get_args ( ) ) ; } ; }
Forces the action to be returns Closure

@todo isso está funcionando?

@return \Closure
Forces the action to be returns Closure