4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpFoundation;
15 * Request represents an HTTP request from an Apache server.
17 * @author Fabien Potencier <fabien@symfony.com>
19 class ApacheRequest extends Request
24 protected function prepareRequestUri()
26 return $this->server->get('REQUEST_URI');
32 protected function prepareBaseUrl()
34 $baseUrl = $this->server->get('SCRIPT_NAME');
36 if (false === strpos($this->server->get('REQUEST_URI'), $baseUrl)) {
38 return rtrim(\dirname($baseUrl), '/\\');