Skip to content

Commit 6eeec65

Browse files
committed
minor symfony#32268 [FrameworkBundle] better message for disabled sessions (Tobion)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] better message for disabled sessions | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | symfony#32215 | License | MIT | Doc PR | Use correct exception class and make the message consistent with all the other exception messages in the FrameworkExtension. Commits ------- b3e3247 [FrameworkBundle] better message for disabled sessions
2 parents b6e8b17 + b3e3247 commit 6eeec65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function load(array $configs, ContainerBuilder $container)
234234

235235
if ($this->isConfigEnabled($container, $config['session'])) {
236236
if (!\extension_loaded('session')) {
237-
throw new \LogicException('PHP extension "session" is required.');
237+
throw new LogicException('Session support cannot be enabled as the session extension is not installed. See https://www.php.net/session.installation for instructions.');
238238
}
239239

240240
$this->sessionConfigEnabled = true;

0 commit comments

Comments
 (0)