private function handleRequest(array $middlewares): void
    {
        $requestHandler = new RequestHandler($this->container, $middlewares);

        $this->response = $requestHandler->handle($this->request);
    }
private function handleRequest(array $middlewares): void
    {
        $requestHandler = new RequestHandler($this->container, $middlewares);

        $this->response = $requestHandler->handle($this->request);
    }
private function handleRequest ( array $ middlewares ) : void { $ requestHandler = new RequestHandler ( $ this -> container , $ middlewares ) ; $ this -> response = $ requestHandler -> handle ( $ this -> request ) ; }
Handles the request and triggers middlewares.

@param array $middlewares
Handles the request and triggers middlewares .