You are here

public function NamespacedAttributeBag::__construct in Zircon Profile 8

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

Constructor.

Parameters

string $storageKey Session storage key.:

string $namespaceCharacter Namespace character to use in keys.:

Overrides AttributeBag::__construct

File

vendor/symfony/http-foundation/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);
}