public function loadRoutes()
    {
        $routeFiles = $this->config["routeFiles"];
        foreach ($routeFiles as $file) {
            $this->loadFile($file, ["app" => $this]);
        }
        return $this;
    }
public function loadRoutes()
    {
        $routeFiles = $this->config["routeFiles"];
        foreach ($routeFiles as $file) {
            $this->loadFile($file, ["app" => $this]);
        }
        return $this;
    }
public function loadRoutes ( ) { $ routeFiles = $ this -> config [ "routeFiles" ] ; foreach ( $ routeFiles as $ file ) { $ this -> loadFile ( $ file , [ "app" => $ this ] ) ; } return $ this ; }
Load routes from files.

@param array $di dependency injection of service container.

@return $this for chaining.
Load routes from files .