If you find yourself in the need of generating a CSRF token for a ‘built’ Request or something in that fashion, you can do it rather easily:
1 2 3 |
|
‘unknown’ is the default ‘intention’ of CSRF tokens in Symfony2, change ‘unknown’ for the correct intention if you are using that option.