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

Breadcrumb

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

function Psr17Factory::createUriFromGlobals

1 call to Psr17Factory::createUriFromGlobals()
Psr17Factory::createServerRequestFromGlobals in vendor/php-http/discovery/src/Psr17Factory.php

File

vendor/php-http/discovery/src/Psr17Factory.php, line 151

Class

Psr17Factory
A generic PSR-17 implementation.

Namespace

Http\Discovery

Code

public function createUriFromGlobals(?array $server = null) : UriInterface {
    return $this->buildUriFromGlobals($this->createUri(''), $server ?? $_SERVER);
}

API Navigation

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