Open Monograph Press
3.3.0
vendor/symfony/http-foundation/ApacheRequest.php
1
<?php
2
3
/*
4
* This file is part of the Symfony package.
5
*
6
* (c) Fabien Potencier <fabien@symfony.com>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace
Symfony\Component\HttpFoundation
;
13
14
@trigger_error(sprintf(
'The "%s" class is deprecated since Symfony 4.4, use "%s" instead.'
, ApacheRequest::class, Request::class), E_USER_DEPRECATED);
15
23
class
ApacheRequest
extends
Request
24
{
28
protected
function
prepareRequestUri
()
29
{
30
return
$this->server->get(
'REQUEST_URI'
);
31
}
32
36
protected
function
prepareBaseUrl
()
37
{
38
$baseUrl
= $this->server->get(
'SCRIPT_NAME'
);
39
40
if
(
false
=== strpos($this->server->get(
'REQUEST_URI'
),
$baseUrl
)) {
41
// assume mod_rewrite
42
return
rtrim(\dirname(
$baseUrl
),
'/\\'
);
43
}
44
45
return
$baseUrl
;
46
}
47
}
Symfony\Component\HttpFoundation\ApacheRequest\prepareRequestUri
prepareRequestUri()
Definition:
vendor/symfony/http-foundation/ApacheRequest.php:28
Symfony\Component\HttpFoundation\ApacheRequest\prepareBaseUrl
prepareBaseUrl()
Definition:
vendor/symfony/http-foundation/ApacheRequest.php:36
Symfony\Component\HttpFoundation\Request\$baseUrl
$baseUrl
Definition:
paymethod/paypal/lib/vendor/symfony/http-foundation/Request.php:229
Request
Class providing operations associated with HTTP requests. Requests are assumed to be in the format ht...
Definition:
Request.inc.php:21
Symfony\Component\HttpFoundation
Definition:
lib/vendor/symfony/http-foundation/AcceptHeader.php:12
plugins
paymethod
paypal
vendor
symfony
http-foundation
ApacheRequest.php
Generated on Fri Aug 28 2020 14:51:23 for Open Monograph Press by
1.8.17