Skip to content

Commit 9d9e647

Browse files
Merge branch '3.4' into 4.2
* 3.4: [HttpFoundation] Throw exception when the \"session\" extension is not loaded remove invalid test cases [Serializer] Fixed PHP of DenormalizableInterface::denormalize [Finder] docblock fixes pass error code as a string Catch JsonException and rethrow in JsonEncode
2 parents 489d179 + 9effd6b commit 9d9e647

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ public function load(array $configs, ContainerBuilder $container)
210210
}
211211

212212
if ($this->isConfigEnabled($container, $config['session'])) {
213+
if (!\extension_loaded('session')) {
214+
throw new \LogicException('PHP extension "session" is required.');
215+
}
216+
213217
$this->sessionConfigEnabled = true;
214218
$this->registerSessionConfiguration($config['session'], $container, $loader);
215219
if (!empty($config['test'])) {

0 commit comments

Comments
 (0)