You are here

public function AttributeBag::set in Zircon Profile 8

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

Sets an attribute.

Parameters

string $name:

mixed $value:

Overrides AttributeBagInterface::set

1 call to AttributeBag::set()
AttributeBag::replace in vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php
Sets attributes.
1 method overrides AttributeBag::set()
NamespacedAttributeBag::set in vendor/symfony/http-foundation/Session/Attribute/NamespacedAttributeBag.php
Sets an attribute.

File

vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php, line 89

Class

AttributeBag
This class relates to session attribute storage.

Namespace

Symfony\Component\HttpFoundation\Session\Attribute

Code

public function set($name, $value) {
  $this->attributes[$name] = $value;
}