function PhpBridgeSessionStorage::__construct
Overrides NativeSessionStorage::__construct
File
-
vendor/
symfony/ http-foundation/ Session/ Storage/ PhpBridgeSessionStorage.php, line 23
Class
- PhpBridgeSessionStorage
- Allows session to be started by PHP and managed by Symfony.
Namespace
Symfony\Component\HttpFoundation\Session\StorageCode
public function __construct(AbstractProxy|\SessionHandlerInterface|null $handler = null, ?MetadataBag $metaBag = null) {
if (!\extension_loaded('session')) {
throw new \LogicException('PHP extension "session" is required.');
}
$this->setMetadataBag($metaBag);
$this->setSaveHandler($handler);
}