src/Framework/App.php
private function initRouter(): App
    {
        $request = $this->container('request');
        $response = $this->container('response');
        $router = new Router($request, $response);
        $router->error(Error::class);

        $this->containers()->set('router', $router);
        return $this;
    }
private function initRouter(): App
    {
        $request = $this->container('request');
        $response = $this->container('response');
        $router = new Router($request, $response);
        $router->error(Error::class);

        $this->containers()->set('router', $router);
        return $this;
    }
private function initRouter ( ) : App { $ request = $ this -> container ( 'request' ) ; $ response = $ this -> container ( 'response' ) ; $ router = new Router ( $ request , $ response ) ; $ router -> error ( Error :: class ) ; $ this -> containers ( ) -> set ( 'router' , $ router ) ; return $ this ; }
Put route into the container of classes

@return  App
Put route into the container of classes