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

[FrameworkBundle][SecurityBundle] Moved security expression providers pass logic to SecurityBundle#27611

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

Conversation

@HeahDude
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets~
LicenseMIT
Doc PR~

@nicolas-grekasnicolas-grekas changed the titleMoved security expression provider pass to SecurityBundle[FrameworkBundle] Moved security expression provider pass to SecurityBundleJun 15, 2018
@stof
Copy link
Member

We probably need to make SecurityBundle conflict with older versions of FrameworkBundle to ensure we don't end up with double registration

*/
publicfunctionprocess(ContainerBuilder$container)
{
if ($container->has('security.expression_language')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be a guard clause now

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

If the code remains cleans and small with one indent, I would keep a readable true condition here. I'll wait for other opinions before changing the style.

@HeahDude
Copy link
ContributorAuthor

@stof I added a BC layer in50a09da. Thanks for the review.

@HeahDudeHeahDudeforce-pushed thesecurity-expression-pass branch from50a09da to0869588CompareJune 16, 2018 10:15
@HeahDudeHeahDude changed the title[FrameworkBundle] Moved security expression provider pass to SecurityBundle[FrameworkBundle][SecurityBundle] Moved security expression providers pass logic to SecurityBundleJun 16, 2018
@HeahDudeHeahDudeforce-pushed thesecurity-expression-pass branch 3 times, most recently from00631cf to70f6708CompareJune 16, 2018 11:20
@HeahDude
Copy link
ContributorAuthor

Failures unrelated.

Status: needs review

"symfony/var-dumper":"<3.4",
"symfony/event-dispatcher":"<3.4",
"symfony/framework-bundle":"<4.1.1",
"symfony/framework-bundle":"<4.2",

Choose a reason for hiding this comment

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

L33 should bump to 4.2 also

HeahDude reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Fixed.

publicfunction__construct(bool$handleSecurityLanguageProviders =true)
{
if ($handleSecurityLanguageProviders) {
@trigger_error(sprintf('Registering services tagged with "security.expression_language_provider" with "%s" is deprecated since Symfony 4.2, use the "%s" instead.',__CLASS__, SecurityExpressionLanguageProvidersPass::class),E_USER_DEPRECATED);

Choose a reason for hiding this comment

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

I'd suggest removing the first "with".

HeahDude reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Agreed, done.


* Allowed configuring taggable cache pools via a new`framework.cache.pools.tags` option (bool|service-id)
* Deprecated auto-injection of the container in AbstractController instances, register them as service subscribers instead
* Deprecated the processing of services tagged`security.expression_language_provider` in favor of the new SecurityBundle pass

Choose a reason for hiding this comment

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

Deprecated processing of services taggedsecurity.expression_language_provider in favor of a newAddExpressionLanguageProvidersPass in SecurityBundle.

HeahDude reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Done.

@HeahDudeHeahDudeforce-pushed thesecurity-expression-pass branch from70f6708 toa8017beCompareJune 19, 2018 13:02
@nicolas-grekas
Copy link
Member

Thank you@HeahDude.

@nicolas-grekasnicolas-grekas merged commita8017be intosymfony:masterJun 19, 2018
nicolas-grekas added a commit that referenced this pull requestJun 19, 2018
…ssion providers pass logic to SecurityBundle (HeahDude)This PR was merged into the 4.2-dev branch.Discussion----------[FrameworkBundle][SecurityBundle] Moved security expression providers pass logic to SecurityBundle| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | ~| License       | MIT| Doc PR        | ~Commits-------a8017be [FrameworkBundle][SecurityBundle] Moved security expression providers pass logic to SecurityBundle
@HeahDudeHeahDude deleted the security-expression-pass branchJune 19, 2018 13:08
nicolas-grekas added a commit that referenced this pull requestJun 19, 2018
This PR was merged into the 4.2-dev branch.Discussion----------[FrameworkBundle] Fixed tests added in#27611| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets | ~| License       | MIT| Doc PR        | ~<!--Write a short README entry for your feature/bugfix here (replace this comment block.)This will help people understand your PR and can be used as a start of the Doc PR.Additionally: - Bug fixes must be submitted against the lowest branch where they apply   (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch.-->Commits-------be97006 [FrameworkBundle] Fixed tests added in#27611
@nicolas-grekasnicolas-grekas removed this from thenext milestoneNov 1, 2018
@nicolas-grekasnicolas-grekas added this to the4.2 milestoneNov 1, 2018
This was referencedNov 3, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+1 more reviewer

@linaorilinaorilinaori requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

5 participants

@HeahDude@stof@nicolas-grekas@linaori@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp