lib/Lime/App.php
public function invoke($class, $action="index", $params=[]) {

        $controller = new $class($this);

        return \method_exists($controller, $action) && \is_callable([$controller, $action])
                ? \call_user_func_array([$controller,$action], $params)
                : false;
    }
public function invoke($class, $action="index", $params=[]) {

        $controller = new $class($this);

        return \method_exists($controller, $action) && \is_callable([$controller, $action])
                ? \call_user_func_array([$controller,$action], $params)
                : false;
    }
public function invoke ( $ class , $ action = "index" , $ params = [ ] ) { $ controller = new $ class ( $ this ) ; return \ method_exists ( $ controller , $ action ) && \ is_callable ( [ $ controller , $ action ] ) ? \ call_user_func_array ( [ $ controller , $ action ] , $ params ) : false ; }
Invoke Class as controller
@param  String $class
@param  String $action
@param  Array  $params
@return Mixed
Invoke Class as controller