public function NativeSessionStorage::setMetadataBag

Sets the MetadataBag.

Parameters

MetadataBag $metaBag:

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

File

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

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;
}