Comment on Replace request_uri() with $request->getRequestUri()