You are here

public function MockArraySessionStorage::__construct in Zircon Profile 8

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

Constructor.

Parameters

string $name Session name:

MetadataBag $metaBag MetadataBag instance.:

1 call to MockArraySessionStorage::__construct()
MockFileSessionStorage::__construct in vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php
Constructor.
1 method overrides MockArraySessionStorage::__construct()
MockFileSessionStorage::__construct in vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php
Constructor.

File

vendor/symfony/http-foundation/Session/Storage/MockArraySessionStorage.php, line 71

Class

MockArraySessionStorage
MockArraySessionStorage mocks the session for unit tests.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function __construct($name = 'MOCKSESSID', MetadataBag $metaBag = null) {
  $this->name = $name;
  $this
    ->setMetadataBag($metaBag);
}