-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] improve some firewall config comments #20404
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
Q | A |
---|---|
Branch? | master |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #19398 |
License | MIT |
Doc PR |
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.
👍
* @param string|null $entryPoint | ||
* @param string|null $accessDeniedHandler | ||
* @param string|null $accessDeniedUrl | ||
* @param string $userChecker |
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.
Isn't it a bit strange to have this mandatory argument after all those optional nullable arguments?
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.
Yes indeed. We could still reorder the arguments.
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 should indeed reorder them before being stuck with BC issues
The SecurityDataCollectorTest needs to be updated due to the argument becoming mandatory. If you want, I can do this change and btw reorder the arguments, so you just correct the doc here. |
*/ | ||
public function getAccessDeniedHandler() | ||
{ | ||
return $this->accessDeniedHandler; | ||
} | ||
|
||
/** | ||
* @return string|null The access_denied_handler service id if configured, null otherwise |
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.
wrong. This is not a service id
* @param string|null $entryPoint | ||
* @param string|null $accessDeniedHandler | ||
* @param string|null $accessDeniedUrl | ||
* @param string $userChecker |
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 should indeed reorder them before being stuck with BC issues
@chalasr I reverted the change to not allowing |
Thank you @xabbuh. |
This PR was merged into the 3.2-dev branch. Discussion ---------- [Security] improve some firewall config comments | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #19398 | License | MIT | Doc PR | Commits ------- cb6c703 [Security] improve some firewall config comments
… mandatory (chalasr) This PR was merged into the 3.2-dev branch. Discussion ---------- [SecurityBundle] FirewallConfig's user_checker should be mandatory | Q | A | ------------- | --- | Branch? | master | Tests pass? | yes | Fixed tickets | #20404 (comment) | License | MIT Commits ------- 6754af2 [SecurityBundle] FirewallConfig's user_checker should be mandatory