Skip to content

Commit

Permalink
minor #32770 [SecurityBundle] remove the deprecated "switch_user.stat…
Browse files Browse the repository at this point in the history
…eless" option (xabbuh)

This PR was merged into the 5.0-dev branch.

Discussion
----------

[SecurityBundle] remove the deprecated "switch_user.stateless" option

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

Commits
-------

55d9c51 remove the deprecated "switch_user.stateless" option
  • Loading branch information
fabpot committed Jul 27, 2019
2 parents d1f932e + 55d9c51 commit 0f84bd6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/Symfony/Bundle/SecurityBundle/CHANGELOG.md
Expand Up @@ -4,6 +4,7 @@ CHANGELOG
5.0.0
-----

* The `switch_user.stateless` firewall option has been removed.
* Removed the ability to configure encoders using `argon2i` or `bcrypt` as algorithm, use `auto` instead
* The `simple_form` and `simple_preauth` authentication listeners have been removed,
use Guard instead.
Expand Down
Expand Up @@ -244,10 +244,6 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto
->scalarNode('provider')->end()
->scalarNode('parameter')->defaultValue('_switch_user')->end()
->scalarNode('role')->defaultValue('ROLE_ALLOWED_TO_SWITCH')->end()
->booleanNode('stateless')
->setDeprecated('The "%path%.%node%" configuration key has been deprecated in Symfony 4.1.')
->defaultValue(false)
->end()
->end()
->end()
;
Expand Down
Expand Up @@ -675,7 +675,7 @@ private function createSwitchUserListener($container, $id, $config, $defaultProv
$listener->replaceArgument(3, $id);
$listener->replaceArgument(6, $config['parameter']);
$listener->replaceArgument(7, $config['role']);
$listener->replaceArgument(9, $stateless ?: $config['stateless']);
$listener->replaceArgument(9, $stateless);

return $switchUserListenerId;
}
Expand Down

0 comments on commit 0f84bd6

Please sign in to comment.