Skip to content

Conversation

@nikophil
Copy link
Contributor

@nikophil nikophil commented Feb 17, 2020

this fixes the bug which occurs presently on master

since we remove memory provider in "make:user" if it is the only
provider, we need to remove this memory provider from firewalls.

And the tests were failing now because the security bundle's recipe has been updated recently, and the memory provider has been added to main firewall

@nikophil nikophil changed the title Fix SecurityConfigUpdater WIP : Fix SecurityConfigUpdater Feb 17, 2020
@nikophil nikophil changed the title WIP : Fix SecurityConfigUpdater Fix SecurityConfigUpdater Feb 17, 2020

foreach ($newData['security']['firewalls'] as &$firewall) {
if (($firewall['provider'] ?? null) === $memoryProviderName) {
$firewall['provider'] = 'app_user_provider';
Copy link
Member

Choose a reason for hiding this comment

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

👍 For the record, we prefer setting the provider explicitly. See symfony/recipes#741

since we remove memory provider in "make:user" if it is the only
provider, we need to remove this memory provider from firewalls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants