You are here

public function Session::set in Zircon Profile 8.0

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

Sets an attribute.

Parameters

string $name:

mixed $value:

Overrides SessionInterface::set

File

vendor/symfony/http-foundation/Session/Session.php, line 93

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function set($name, $value) {
  $this->storage
    ->getBag($this->attributeName)
    ->set($name, $value);
}