NamespacedAttributeBag
class NamespacedAttributeBag extends AttributeBag
This class provides structured storage of session attributes using a name spacing character in the key.
Properties
protected | $attributes | from AttributeBag |
Methods
__construct(string $storageKey = '_sf2_attributes', string $namespaceCharacter = '/')
No description
bool
has(string $name)
Checks if an attribute is defined.
mixed
get(string $name, mixed $default = null)
Returns an attribute.
set(string $name, mixed $value)
Sets an attribute.
mixed
remove(string $name)
Removes an attribute.
array
resolveAttributePath(string $name, bool $writeContext = false)
Resolves a path in attributes property and returns it as a reference.
string
resolveKey(string $name)
Resolves the key from the name.