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

Breadcrumb

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

function PhpBridgeSessionStorage::__construct

Overrides NativeSessionStorage::__construct

File

vendor/symfony/http-foundation/Session/Storage/PhpBridgeSessionStorage.php, line 23

Class

PhpBridgeSessionStorage
Allows session to be started by PHP and managed by Symfony.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function __construct(AbstractProxy|\SessionHandlerInterface|null $handler = null, ?MetadataBag $metaBag = null) {
    if (!\extension_loaded('session')) {
        throw new \LogicException('PHP extension "session" is required.');
    }
    $this->setMetadataBag($metaBag);
    $this->setSaveHandler($handler);
}

API Navigation

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