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

Breadcrumb

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

function StrictSessionHandler::__construct

File

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

Class

StrictSessionHandler
Adds basic `SessionUpdateTimestampHandlerInterface` behaviors to another `SessionHandlerInterface`.

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Handler

Code

public function __construct(\SessionHandlerInterface $handler) {
    if ($handler instanceof \SessionUpdateTimestampHandlerInterface) {
        throw new \LogicException(\sprintf('"%s" is already an instance of "SessionUpdateTimestampHandlerInterface", you cannot wrap it with "%s".', get_debug_type($handler), self::class));
    }
}

API Navigation

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