Skip to content

Commit 6eeec65

Browse files
committed
minor #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 | #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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy