-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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
Conversation
849247d
to
18240e2
Compare
@@ -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']; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #16704
Can you apply the fabbot fixes? Also, CsrfFormLoginTest fails on 5.5. Is this related? 👍 otherwise |
13d7a06
to
abf92f9
Compare
@@ -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'); |
There was a problem hiding this comment.
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?
abf92f9
to
5bc34d2
Compare
@nicolas-grekas Will you remove the deprecated related config options from the SecurityBundle here too or should I open a separate pull request? |
@xabbuh please do |
Thank you @nicolas-grekas. |
…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
CsrfProviderAdapter+Interface have already been removed from master, we should not use them anymore. Let's see if tests agree.