Skip to content

Added tip to enable CsrfTokenManager as service #8941

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

Merged
merged 2 commits into from
Jan 4, 2018

Conversation

jonasarts
Copy link
Contributor

in the framework configuration file as it is required for autowiring on the ExampleFormAuthenticator constructor

in the framework configuration file as it is required for autowiring on the ExampleFormAuthenticator constructor
Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

I like this but I propose a reword. If #8958 is merged, we'll have a new direct link to the doc of the csrf_protection config option, so we could remove this proposed tip and reword this (line 487):

First, :ref:`add the _csrf_token to your login template <csrf-login-template>`.

like this:

First, check that :ref:`the csrf_protection option <reference-framework-csrf-protection>`
is enabled and :ref:`add the _csrf_token to your login template <csrf-login-template>`.

@xabbuh xabbuh added this to the 4.0 milestone Jan 2, 2018
@javiereguiluz
Copy link
Member

Thanks @jonasarts.

@javiereguiluz javiereguiluz merged commit 21d42f3 into symfony:4.0 Jan 4, 2018
javiereguiluz added a commit that referenced this pull request Jan 4, 2018
…s, javiereguiluz)

This PR was merged into the 4.0 branch.

Discussion
----------

Added tip to enable CsrfTokenManager as service

in the framework configuration file as it is required for autowiring on the ExampleFormAuthenticator constructor

Commits
-------

21d42f3 Reword
9ae3f82 Added tip to enable CsrfTokenManager as service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants