src/SlimController/Slim.php
public function addControllerRoute($path, $route, array $middleware = array())
    {
        $callback = $this->buildCallbackFromControllerRoute($route);

        array_unshift($middleware, $path);
        array_push($middleware, $callback);

        $route = call_user_func_array(array($this, 'map'), $middleware);

        return $route;
    }
public function addControllerRoute($path, $route, array $middleware = array())
    {
        $callback = $this->buildCallbackFromControllerRoute($route);

        array_unshift($middleware, $path);
        array_push($middleware, $callback);

        $route = call_user_func_array(array($this, 'map'), $middleware);

        return $route;
    }
public function addControllerRoute ( $ path , $ route , array $ middleware = array ( ) ) { $ callback = $ this -> buildCallbackFromControllerRoute ( $ route ) ; array_unshift ( $ middleware , $ path ) ; array_push ( $ middleware , $ callback ) ; $ route = call_user_func_array ( array ( $ this , 'map' ) , $ middleware ) ; return $ route ; }
Add a new controller route

<code>
$app->addControllerRoute("/the/path", "className:methodName", array(function () { doSome(); }))
->via('GET')->condition(..);

$app->addControllerRoute("/the/path", "className:methodName")
->via('GET')->condition(..);
</code>

@param string     $path
@param string     $route
@param callable[] $middleware,...

@return \Slim\Route
Add a new controller route