feature #25197 [FrameworkBundle][TwigBridge] make csrf_token() usable without forms (xabbuh)
feature #25197 [FrameworkBundle][TwigBridge] make csrf_token() usable without forms (xabbuh)

This PR was merged into the 4.1-dev branch.

Discussion
----------

[FrameworkBundle][TwigBridge] make csrf_token() usable without forms

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

The Twig function `csrf_token()` is currently only registered when the
Form component is installed. However, this function is also useful, for
example, when creating simple login forms for which you do not need the
full Form component.

Commits
-------

709efa30fc make csrf_token() usable without forms

symfony/twig-bridge,symfony/TwigBridge