get(Router::class); if (is_string($class)) { $class = di($class); } $router->addRoute($this->uri, [$class, $method], strtoupper($this->method)); return $router; } }