public function NamespacedAttributeBag::__construct

Constructor.

Parameters

string $storageKey Session storage key.:

string $namespaceCharacter Namespace character to use in keys.:

Overrides AttributeBag::__construct

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php, line 35

Class

NamespacedAttributeBag
This class provides structured storage of session attributes using a name spacing character in the key.

Namespace

Symfony\Component\HttpFoundation\Session\Attribute

Code

public function __construct($storageKey = '_sf2_attributes', $namespaceCharacter = '/') {
  $this->namespaceCharacter = $namespaceCharacter;
  parent::__construct($storageKey);
}