Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[SecurityBundle] Enhance FirewallContext::getListeners()#22475

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:masterfromro0NL:firewallcontext
Apr 26, 2017
Merged

[SecurityBundle] Enhance FirewallContext::getListeners()#22475

fabpot merged 1 commit intosymfony:masterfromro0NL:firewallcontext
Apr 26, 2017

Conversation

@ro0NL
Copy link
Contributor

@ro0NLro0NL commentedApr 19, 2017
edited
Loading

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#20417 (comment),#20417 (comment)
LicenseMIT
Doc PRsymfony/symfony-docs#...

I think@stof is right.. and the fact we can do this on master currently without the hassle.

cc@chalasr

linaori, ogizanagi, chalasr, and Koc reacted with thumbs up emoji
Copy link
Member

@chalasrchalasr left a comment

Choose a reason for hiding this comment

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

👍

@ro0NL
Copy link
ContributorAuthor

OK.. im getting some root issues here; ie. theFirewallMapInterface::getListeners() actually documents this return type; and now tests are mysteriously broken.FirewallContext doesnt implement it.. but this change seems to have effect elsewere;

Call to undefined method Symfony\Component\Security\Http\Firewall\ContextListener::register() in /var/www/html/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall.php on line 64

Looking at it..@chalasr any headsup? Should we still do this PR?

@chalasr
Copy link
Member

chalasr commentedApr 19, 2017
edited
Loading

@ro0NL

diff --git a/src/Symfony/Bundle/SecurityBundle/Security/FirewallMap.php b/src/Symfony/Bundle/SecurityBundle/Security/FirewallMap.phpindex a511193..55272ec 100644--- a/src/Symfony/Bundle/SecurityBundle/Security/FirewallMap.php+++ b/src/Symfony/Bundle/SecurityBundle/Security/FirewallMap.php@@ -124,7 +124,7 @@ class _FirewallMap             return array(array(), null);         }-        return $context->getListeners();+        return array($context->getListeners(), $context->getExceptionListener());     }      /**

should make this green.
HavingFirewallMap::getListeners() returning the current return value ofFirewall::getListeners() (both exception and normal listeners) cannot be changed as the security component provides an array oriented FirewallMap, and its imposed by FirewallMapInterface anyway. This change is still fine to me :)

@ro0NL
Copy link
ContributorAuthor

Of course.... thanks :)

@nicolas-grekasnicolas-grekas added this to the3.3 milestoneApr 20, 2017
Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

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

👍

@fabpot
Copy link
Member

Thank you@ro0NL.

@fabpotfabpot merged commitba65078 intosymfony:masterApr 26, 2017
fabpot added a commit that referenced this pull requestApr 26, 2017
… (ro0NL)This PR was merged into the 3.3-dev branch.Discussion----------[SecurityBundle] Enhance FirewallContext::getListeners()| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#20417 (comment),#20417 (comment)| License       | MIT| Doc PR        | symfony/symfony-docs#... <!--highly recommended for new features-->I think@stof is right.. and the fact we can do this on master currently without the hassle.cc@chalasrCommits-------ba65078 [SecurityBundle] Enhance FirewallContext::getListeners()
@ro0NLro0NL deleted the firewallcontext branchApril 28, 2017 07:15
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

@chalasrchalasrchalasr approved these changes

@stofstofAwaiting requested review from stof

+1 more reviewer

@ogizanagiogizanagiogizanagi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

7 participants

@ro0NL@chalasr@fabpot@javiereguiluz@ogizanagi@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp