Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[HttpFoundation] added ApacheRequest
  • Loading branch information
fabpot committed Jan 31, 2011
1 parent 8dd0c56 commit b52e282
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/Symfony/Component/HttpFoundation/ApacheRequest.php
@@ -0,0 +1,44 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Component\HttpFoundation;

/**
* Request represents an HTTP request from an Apache server.
*
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class ApacheRequest extends Request
{
/**
* {@inheritdoc}
*/
protected function prepareRequestUri()
{
return $this->server->get('REQUEST_URI');
}

/**
* {@inheritdoc}
*/
protected function prepareBaseUrl()
{
return $this->server->get('SCRIPT_NAME');
}

/**
* {@inheritdoc}
*/
protected function preparePathInfo()
{
return $this->server->get('PATH_INFO');
}
}

0 comments on commit b52e282

Please sign in to comment.