You are here

class Request in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request
  2. 8 vendor/symfony/browser-kit/Request.php \Symfony\Component\BrowserKit\Request
  3. 8 vendor/zendframework/zend-diactoros/src/Request.php \Zend\Diactoros\Request
  4. 8 vendor/zendframework/zend-stdlib/src/Request.php \Zend\Stdlib\Request
  5. 8 vendor/guzzlehttp/psr7/src/Request.php \GuzzleHttp\Psr7\Request
  6. 8 vendor/jcalderonzumba/gastonjs/src/NetworkTraffic/Request.php \Zumba\GastonJS\NetworkTraffic\Request
Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Request.php \Symfony\Component\BrowserKit\Request

Request object.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • class \Symfony\Component\BrowserKit\Request

Expanded class hierarchy of Request

4 files declare their use of Request
Client.php in vendor/symfony/http-kernel/Client.php
Client.php in vendor/fabpot/goutte/Goutte/Client.php
HistoryTest.php in vendor/symfony/browser-kit/Tests/HistoryTest.php
RequestTest.php in vendor/symfony/browser-kit/Tests/RequestTest.php
3 string references to 'Request'
legacy-services6.yml in vendor/symfony/dependency-injection/Tests/Fixtures/yaml/legacy-services6.yml
vendor/symfony/dependency-injection/Tests/Fixtures/yaml/legacy-services6.yml
services20.yml in vendor/symfony/dependency-injection/Tests/Fixtures/yaml/services20.yml
vendor/symfony/dependency-injection/Tests/Fixtures/yaml/services20.yml
services9.yml in vendor/symfony/dependency-injection/Tests/Fixtures/yaml/services9.yml
vendor/symfony/dependency-injection/Tests/Fixtures/yaml/services9.yml

File

vendor/symfony/browser-kit/Request.php, line 19

Namespace

Symfony\Component\BrowserKit
View source
class Request {
  protected $uri;
  protected $method;
  protected $parameters;
  protected $files;
  protected $cookies;
  protected $server;
  protected $content;

  /**
   * Constructor.
   *
   * @param string $uri        The request URI
   * @param string $method     The HTTP method request
   * @param array  $parameters The request parameters
   * @param array  $files      An array of uploaded files
   * @param array  $cookies    An array of cookies
   * @param array  $server     An array of server parameters
   * @param string $content    The raw body data
   */
  public function __construct($uri, $method, array $parameters = array(), array $files = array(), array $cookies = array(), array $server = array(), $content = null) {
    $this->uri = $uri;
    $this->method = $method;
    $this->parameters = $parameters;
    $this->files = $files;
    $this->cookies = $cookies;
    $this->server = $server;
    $this->content = $content;
  }

  /**
   * Gets the request URI.
   *
   * @return string The request URI
   */
  public function getUri() {
    return $this->uri;
  }

  /**
   * Gets the request HTTP method.
   *
   * @return string The request HTTP method
   */
  public function getMethod() {
    return $this->method;
  }

  /**
   * Gets the request parameters.
   *
   * @return array The request parameters
   */
  public function getParameters() {
    return $this->parameters;
  }

  /**
   * Gets the request server files.
   *
   * @return array The request files
   */
  public function getFiles() {
    return $this->files;
  }

  /**
   * Gets the request cookies.
   *
   * @return array The request cookies
   */
  public function getCookies() {
    return $this->cookies;
  }

  /**
   * Gets the request server parameters.
   *
   * @return array The request server parameters
   */
  public function getServer() {
    return $this->server;
  }

  /**
   * Gets the request raw body data.
   *
   * @return string The request raw body data.
   */
  public function getContent() {
    return $this->content;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Request::$content protected property
Request::$cookies protected property
Request::$files protected property
Request::$method protected property
Request::$parameters protected property
Request::$server protected property
Request::$uri protected property
Request::getContent public function Gets the request raw body data.
Request::getCookies public function Gets the request cookies.
Request::getFiles public function Gets the request server files.
Request::getMethod public function Gets the request HTTP method.
Request::getParameters public function Gets the request parameters.
Request::getServer public function Gets the request server parameters.
Request::getUri public function Gets the request URI.
Request::__construct public function Constructor.