Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[SecurityBundle] Use config variable in AnonymousFactory #34786

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
Dec 3, 2019

Conversation

martijnboers
Copy link
Contributor

@martijnboers martijnboers commented Dec 3, 2019

Q A
Branch? 4.4 and 5.0
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT

It looks like the AnonymousFactory was copied incorrectly in #33503 as it uses the old $firewall variable available in SecurityExtension.php. Changing this to $config yields the desired results

@martijnboers martijnboers changed the title When set, get secret from config variable [DependencyInjection] Use config variable in AnonymousFactory Dec 3, 2019
@martijnboers martijnboers changed the title [DependencyInjection] Use config variable in AnonymousFactory [SecurityBundle] Use config variable in AnonymousFactory Dec 3, 2019
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Dec 3, 2019
@chalasr
Copy link
Member

chalasr commented Dec 3, 2019

Thank you @martijnboers.

chalasr pushed a commit that referenced this pull request Dec 3, 2019
…martijnboers)

This PR was merged into the 4.4 branch.

Discussion
----------

[SecurityBundle] Use config variable in AnonymousFactory

| Q             | A
| ------------- | ---
| Branch?       | 4.4 and 5.0
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT

It looks like the `AnonymousFactory` was copied incorrectly in #33503 as it uses the old `$firewall` variable available in `SecurityExtension.php`. Changing this to `$config` yields the desired results

Commits
-------

8d850d2 When set, get secret from config variable
@chalasr chalasr merged commit 8d850d2 into symfony:4.4 Dec 3, 2019
@chalasr
Copy link
Member

chalasr commented Dec 3, 2019

And congratz for your first contrib :)

@martijnboers martijnboers deleted the correctly-get-secret-from-config branch December 4, 2019 09:02
This was referenced Dec 19, 2019
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