Change record status: 
Project: 
Introduced in branch: 
8.0.x
Introduced in version: 
8.0.0-beta8
Description: 

The request_uri() method is replaced with a method on $request object.

Before

$uri = request_uri();
$uri_without_query_string = request_uri(TRUE);

After

$uri = \Drupal::request()->getRequestUri();
$uri_without_query_string = \Drupal::request()->getPathInfo();
Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done