Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Request.php

function Request::initialize

Sets the parameters for this request.

This method also re-initializes all properties.

Parameters

array $query The GET parameters:

array $request The POST parameters:

array $attributes The request attributes (parameters parsed from the PATH_INFO, ...):

array $cookies The COOKIE parameters:

array $files The FILES parameters:

array $server The SERVER parameters:

string|resource|null $content The raw body data:

1 call to Request::initialize()
Request::__construct in vendor/symfony/http-foundation/Request.php

File

vendor/symfony/http-foundation/Request.php, line 226

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function initialize(array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], $content = null) : void {
    $this->request = new InputBag($request);
    $this->query = new InputBag($query);
    $this->attributes = new ParameterBag($attributes);
    $this->cookies = new InputBag($cookies);
    $this->files = new FileBag($files);
    $this->server = new ServerBag($server);
    $this->headers = new HeaderBag($this->server
        ->getHeaders());
    $this->content = $content;
    $this->languages = null;
    $this->charsets = null;
    $this->encodings = null;
    $this->acceptableContentTypes = null;
    $this->pathInfo = null;
    $this->requestUri = null;
    $this->baseUrl = null;
    $this->basePath = null;
    $this->method = null;
    $this->format = null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal