public function router()
    {
        return new Router\Router($this->routeMap, new Router\Resolver\Container($this->container));
    }
public function router()
    {
        return new Router\Router($this->routeMap, new Router\Resolver\Container($this->container));
    }
public function router ( ) { return new Router \ Router ( $ this -> routeMap , new Router \ Resolver \ Container ( $ this -> container ) ) ; }
Routers are middleware and can be added to Tonis.

e.g., $router = $app->router();
$router->get(...)

$app->add($router);

@return Router\Router
Routers are middleware and can be added to Tonis .