You are here

public function NamespacedAttributeBag::set 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::set()

Sets an attribute.

Parameters

string $name:

mixed $value:

Overrides AttributeBag::set

File

vendor/symfony/http-foundation/Session/Attribute/NamespacedAttributeBag.php, line 76

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 set($name, $value) {
  $attributes =& $this
    ->resolveAttributePath($name, true);
  $name = $this
    ->resolveKey($name);
  $attributes[$name] = $value;
}