function NativeSessionStorage::setMetadataBag
2 calls to NativeSessionStorage::setMetadataBag()
- NativeSessionStorage::__construct in vendor/
symfony/ http-foundation/ Session/ Storage/ NativeSessionStorage.php - Depending on how you want the storage driver to behave you probably want to override this constructor entirely.
- PhpBridgeSessionStorage::__construct in vendor/
symfony/ http-foundation/ Session/ Storage/ PhpBridgeSessionStorage.php - Depending on how you want the storage driver to behave you probably want to override this constructor entirely.
File
-
vendor/
symfony/ http-foundation/ Session/ Storage/ NativeSessionStorage.php, line 288
Class
- NativeSessionStorage
- This provides a base class for session attribute storage.
Namespace
Symfony\Component\HttpFoundation\Session\StorageCode
public function setMetadataBag(?MetadataBag $metaBag) : void {
$this->metadataBag = $metaBag ?? new MetadataBag();
}