Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Form] Drop remaing CsrfProviderAdapter/Interface mentions #16692

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 1 commit into from
Nov 28, 2015

Conversation

nicolas-grekas
Copy link
Member

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

CsrfProviderAdapter+Interface have already been removed from master, we should not use them anymore. Let's see if tests agree.

@@ -121,30 +113,12 @@ public function finishView(FormView $view, FormInterface $form, array $options)
*/
public function configureOptions(OptionsResolver $resolver)
{
// BC clause for the "intention" option
$csrfTokenId = function (Options $options) {
return $options['intention'];
Copy link
Member

Choose a reason for hiding this comment

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

we were missing a deprecation notice when the user passes intention rather than csrf_token_id though

Copy link
Member Author

Choose a reason for hiding this comment

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

See #16704

@webmozart
Copy link
Contributor

Can you apply the fabbot fixes? Also, CsrfFormLoginTest fails on 5.5. Is this related?

👍 otherwise

@nicolas-grekas nicolas-grekas force-pushed the master-clean branch 3 times, most recently from 13d7a06 to abf92f9 Compare November 27, 2015 20:22
@@ -29,7 +29,7 @@ public function __construct()
$this->addOption('username_parameter', '_username');
$this->addOption('password_parameter', '_password');
$this->addOption('csrf_parameter', '_csrf_token');
$this->addOption('intention', 'authenticate');
$this->addOption('csrf_token_id', 'authenticate');
Copy link
Member Author

Choose a reason for hiding this comment

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

2.8 is missing a deprecation+bc-layer for renaming intention to csrf_token_id. Could someone give it a try? @stof? Any other @symfony/deciders?

@xabbuh
Copy link
Member

xabbuh commented Nov 28, 2015

@nicolas-grekas Will you remove the deprecated related config options from the SecurityBundle here too or should I open a separate pull request?

@nicolas-grekas
Copy link
Member Author

@xabbuh please do

@fabpot
Copy link
Member

fabpot commented Nov 28, 2015

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 5bc34d2 into symfony:master Nov 28, 2015
fabpot added a commit that referenced this pull request Nov 28, 2015
…ions (nicolas-grekas)

This PR was merged into the 3.0-dev branch.

Discussion
----------

[Form] Drop remaing CsrfProviderAdapter/Interface mentions

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

CsrfProviderAdapter+Interface have already been removed from master, we should not use them anymore. Let's see if tests agree.

Commits
-------

5bc34d2 [Form] Drop remaing CsrfProviderAdapter/Interface mentions
@nicolas-grekas nicolas-grekas deleted the master-clean branch November 28, 2015 10:40
@fabpot fabpot mentioned this pull request Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants