public function PhpBridgeSessionStorage::__construct

Constructor.

Parameters

AbstractProxy|NativeSessionHandler|\SessionHandlerInterface|null $handler:

MetadataBag $metaBag MetadataBag:

Overrides NativeSessionStorage::__construct

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/PhpBridgeSessionStorage.php, line 31

Class

PhpBridgeSessionStorage
Allows session to be started by PHP and managed by Symfony2

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function __construct($handler = null, MetadataBag $metaBag = null) {
  $this
    ->setMetadataBag($metaBag);
  $this
    ->setSaveHandler($handler);
}