Symfony's Request class is an object-oriented representation of the HTTP request. It contains information such as the URL, query string, uploaded files, cookies and other headers coming from the browser.
$request->getPathInfo(); // returns the path (local part of the URL) that is being requ...