public function NativeSessionStorage::setMetadataBag

Sets the MetadataBag.

Parameters

MetadataBag $metaBag:

2 calls to NativeSessionStorage::setMetadataBag()
NativeSessionStorage::__construct in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php
Constructor.
PhpBridgeSessionStorage::__construct in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/PhpBridgeSessionStorage.php
Constructor.

File

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

Class

NativeSessionStorage
This provides a base class for session attribute storage.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function setMetadataBag(MetadataBag $metaBag = null) {
  if (null === $metaBag) {
    $metaBag = new MetadataBag();
  }
  $this->metadataBag = $metaBag;
}