minor #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
-------
eaf5642b95
Tweak message to be Flex friendly
This commit is contained in:
commit
51c7b2dc1e
@ -1158,7 +1158,7 @@ class FrameworkExtension extends Extension
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists('Symfony\Component\Security\Csrf\CsrfToken')) {
|
if (!class_exists('Symfony\Component\Security\Csrf\CsrfToken')) {
|
||||||
throw new LogicException('CSRF support cannot be enabled as the Security CSRF component is not installed.');
|
throw new LogicException('CSRF support cannot be enabled as the Security CSRF component is not installed. Try running "composer require security-csrf".');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->sessionConfigEnabled) {
|
if (!$this->sessionConfigEnabled) {
|
||||||
|
Reference in New Issue
Block a user