8000 [Security] improve some firewall config comments by xabbuh · Pull Request #20404 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[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

Merged
merged 1 commit into from
Nov 4, 2016

Conversation

xabbuh
Copy link
Member
@xabbuh xabbuh commented Nov 4, 2016
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

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.

👍

* @param string|null $entryPoint
* @param string|null $accessDeniedHandler
* @param string|null $accessDeniedUrl
* @param string $userChecker
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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
Copy link
Member
chalasr commented Nov 4, 2016

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
Copy link
Member

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
Copy link
Member

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

@xabbuh
Copy link
Member Author
xabbuh commented Nov 4, 2016

@chalasr I reverted the change to not allowing null anymore for the user checker argument. Do you wanna create an additional PR with that change?

@chalasr
Copy link
Member
chalasr commented Nov 4, 2016

@xabbuh see #20407 (sorry for the spam, looks like github is buggy today)

@fabpot
Copy link
Member
fabpot commented Nov 4, 2016

Thank you @xabbuh.

@fabpot fabpot merged commit cb6c703 into symfony:master Nov 4, 2016
fabpot added a commit that referenced this pull request Nov 4, 2016
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
@xabbuh xabbuh deleted the pr-19398 branch November 4, 2016 14:18
fabpot added a commit that referenced this pull request Nov 4, 2016
… 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
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.

6 participants
0