10000 The security component must be installed to use csrf_token() by javiereguiluz · Pull Request #8821 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

The security component must be installed to use csrf_token() #8821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

javiereguiluz
Copy link
Member

This fixes #8816.


.. code-block:: terminal

$ composer require security
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-csrf is enough

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, you need the Form component for the Twig function to be available.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, it should be composer require security-csrf form, correct?

@javiereguiluz
Copy link
Member Author

Closing in favor of #8873.

Sign up for free to join this conversation on GitHub. Already 6B76 have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0