Skip to content

Commit 51c7b2d

Browse files
committed
minor symfony#25503 Tweak message to be Flex friendly (weaverryan)
This PR was merged into the 3.3 branch. Discussion ---------- Tweak message to be Flex friendly | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | not needed If the user activates this without the component, this gives them an actionable message. Commits ------- eaf5642 Tweak message to be Flex friendly
2 parents f5f3dd7 + eaf5642 commit 51c7b2d

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
@@ -1158,7 +1158,7 @@ private function registerSecurityCsrfConfiguration(array $config, ContainerBuild
11581158
}
11591159

11601160
if (!class_exists('Symfony\Component\Security\Csrf\CsrfToken')) {
1161-
throw new LogicException('CSRF support cannot be enabled as the Security CSRF component is not installed.');
1161+
throw new LogicException('CSRF support cannot be enabled as the Security CSRF component is not installed. Try running "composer require security-csrf".');
11621162
}
11631163

11641164
if (!$this->sessionConfigEnabled) {

0 commit comments

Comments
 (0)