You are here

public function ServerRequest::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/zendframework/zend-diactoros/src/ServerRequest.php \Zend\Diactoros\ServerRequest::__construct()
  2. 8 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/ServerRequest.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\ServerRequest::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/ServerRequest.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\ServerRequest::__construct()

Overrides Message::__construct

File

vendor/symfony/psr-http-message-bridge/Tests/Fixtures/ServerRequest.php, line 33

Class

ServerRequest
@author Kévin Dunglas <dunglas@gmail.com>

Namespace

Symfony\Bridge\PsrHttpMessage\Tests\Fixtures

Code

public function __construct($version = '1.1', array $headers = array(), StreamInterface $body = null, $requestTarget = '/', $method = 'GET', $uri = null, array $server = array(), array $cookies = array(), array $query = array(), array $uploadedFiles = array(), $data = null, array $attributes = array()) {
  parent::__construct($version, $headers, $body);
  $this->requestTarget = $requestTarget;
  $this->method = $method;
  $this->uri = $uri;
  $this->server = $server;
  $this->cookies = $cookies;
  $this->query = $query;
  $this->uploadedFiles = $uploadedFiles;
  $this->data = $data;
  $this->attributes = $attributes;
}