Skip to content

[SecurityBundle] simplified code #21709

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
Feb 23, 2017
Merged

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Feb 22, 2017

Q A
Branch? 3.2
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

Simplified code for 3.2 (followup to #21679)

@xabbuh
Copy link
Member

xabbuh commented Feb 22, 2017

We need to be explicit about the supported versions (should be ^3.2.2 because of #20995) of the DependencyInjection component.

$voters = call_user_func_array('array_merge', $voters);

if (!$voters) {
throw new LogicException('No security voters found. You need to tag at least one with "security.voter"');
Copy link
Member

Choose a reason for hiding this comment

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

this exception is gone. Is it expected ?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, that's a mistake.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed, test added

@fabpot fabpot force-pushed the code-simplification branch from 9961ccb to e713ceb Compare February 22, 2017 16:49
@fabpot fabpot force-pushed the code-simplification branch from e713ceb to 512742b Compare February 23, 2017 01:31
@fabpot fabpot merged commit 512742b into symfony:3.2 Feb 23, 2017
fabpot added a commit that referenced this pull request Feb 23, 2017
This PR was merged into the 3.2 branch.

Discussion
----------

[SecurityBundle] simplified code

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

Simplified code for 3.2 (followup to #21679)

Commits
-------

512742b [SecurityBundle] simplified code
@fabpot fabpot deleted the code-simplification branch April 7, 2017 17:17
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.

4 participants