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:
Fabien Potencier 2017-12-14 11:43:39 -08:00
commit 51c7b2dc1e

View File

@ -1158,7 +1158,7 @@ class FrameworkExtension extends Extension
}
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) {