public function MockArraySessionStorage::setMetadataBag in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Session/Storage/MockArraySessionStorage.php \Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage::setMetadataBag()
Sets the MetadataBag.
Parameters
MetadataBag $bag:
1 call to MockArraySessionStorage::setMetadataBag()
- MockArraySessionStorage::__construct in vendor/
symfony/ http-foundation/ Session/ Storage/ MockArraySessionStorage.php - Constructor.
File
- vendor/
symfony/ http-foundation/ Session/ Storage/ MockArraySessionStorage.php, line 223
Class
- MockArraySessionStorage
- MockArraySessionStorage mocks the session for unit tests.
Namespace
Symfony\Component\HttpFoundation\Session\StorageCode
public function setMetadataBag(MetadataBag $bag = null) {
if (null === $bag) {
$bag = new MetadataBag();
}
$this->metadataBag = $bag;
}