Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

4668 document isCsrfTokenValid#5325

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
snoek09 wants to merge4 commits intosymfony:2.6fromsnoek09:4668-document-is-csrf-token-valid
Closed

4668 document isCsrfTokenValid#5325

snoek09 wants to merge4 commits intosymfony:2.6fromsnoek09:4668-document-is-csrf-token-valid

Conversation

@snoek09
Copy link

QA
Doc fix?yes
New docs?yes
Applies to2.6
Fixed tickets#4668

Copy link
Member

Choose a reason for hiding this comment

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

For consistency with other parts of the doc, there should be a comment showing the alternative not using the shortcut

Copy link
Member

Choose a reason for hiding this comment

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

We always use "was introduced in".

@xabbuh
Copy link
Member

@snoek09 Thank you for your contribution. Do you also like to open a pull request for the2.3 branch to document the old way there?

@snoek09
Copy link
Author

@xabbuh PR for2.3 documenting the old way:#5340

Copy link
Member

Choose a reason for hiding this comment

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

Can you please move themethod role to its own line?

@snoek09
Copy link
Author

@xabbuh done, please let me know if this needs any other changes.

Copy link
Member

Choose a reason for hiding this comment

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

I prefer something like this:

..versionadded::2.6    The ``isCsrfTokenValid()`` shortcut method was introduced in Symfony 2.6.    It is equivalent to executing the following code::        use Symfony\Component\Security\Csrf\CsrfToken;        $this->get('security.csrf.token_manager')->isTokenValid(new CsrfToken('token_id', 'TOKEN'));

@wouterj
Copy link
Member

👍 (apart from my 2 comments, but these can be fixed by the merger quite easily)

@snoek09
Copy link
Author

@wouterj I created a new PR for this:#5572

wouterj added a commit that referenced this pull requestJul 29, 2015
This PR was squashed before being merged into the 2.6 branch (closes#5572).Discussion----------4668 document isCsrfTokenValid| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | yes| Applies to    | 2.6| Fixed tickets |#4668See original PR#5325 for comments.Commits-------11383f8 4668 document isCsrfTokenValid
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@snoek09@xabbuh@wouterj@stof

[8]ページ先頭

©2009-2025 Movatter.jp