Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/routing/RequestContext.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
29 private $host; | 29 private $host; |
30 private $scheme; | 30 private $scheme; |
31 private $httpPort; | 31 private $httpPort; |
32 private $httpsPort; | 32 private $httpsPort; |
33 private $queryString; | 33 private $queryString; |
34 | |
35 /** | |
36 * @var array | |
37 */ | |
38 private $parameters = array(); | 34 private $parameters = array(); |
39 | 35 |
40 /** | 36 /** |
41 * Constructor. | |
42 * | |
43 * @param string $baseUrl The base URL | 37 * @param string $baseUrl The base URL |
44 * @param string $method The HTTP method | 38 * @param string $method The HTTP method |
45 * @param string $host The HTTP host name | 39 * @param string $host The HTTP host name |
46 * @param string $scheme The HTTP scheme | 40 * @param string $scheme The HTTP scheme |
47 * @param int $httpPort The HTTP port | 41 * @param int $httpPort The HTTP port |
62 } | 56 } |
63 | 57 |
64 /** | 58 /** |
65 * Updates the RequestContext information based on a HttpFoundation Request. | 59 * Updates the RequestContext information based on a HttpFoundation Request. |
66 * | 60 * |
67 * @param Request $request A Request instance | |
68 * | |
69 * @return $this | 61 * @return $this |
70 */ | 62 */ |
71 public function fromRequest(Request $request) | 63 public function fromRequest(Request $request) |
72 { | 64 { |
73 $this->setBaseUrl($request->getBaseUrl()); | 65 $this->setBaseUrl($request->getBaseUrl()); |