You are here

public function NativeSessionStorage::setMetadataBag in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage::setMetadataBag()

Sets the MetadataBag.

Parameters

MetadataBag $metaBag:

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

File

vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php, line 289

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