Skip to content

Commit

Permalink
[Symfony 5.2] Rename setProviderKey()/getProviderKey() to setFirewall…
Browse files Browse the repository at this point in the history
…Name()/getFirewallName() (#4888)

* [Symfony 5.2] Rename setProviderKey()/getProviderKey() to setFirewallName()/getFirewallName()

* [Symfony 5.2] Rename setProviderKey()/getProviderKey() to setFirewallName()/getFirewallName()
  • Loading branch information
simivar authored Dec 15, 2020
1 parent 6f1eb0b commit 89e75fe
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config/set/symfony52.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,20 @@
),
]),
]]);

$services->set(RenameMethodRector::class)
->call('configure', [[
RenameMethodRector::METHOD_CALL_RENAMES => ValueObjectInliner::inline([
new MethodCallRename('Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken', 'setProviderKey', 'setFirewallName'),
new MethodCallRename('Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken', 'getProviderKey', 'getFirewallName'),
new MethodCallRename('Symfony\Component\Security\Core\Authentication\Token\RememberMeToken', 'setProviderKey', 'setFirewallName'),
new MethodCallRename('Symfony\Component\Security\Core\Authentication\Token\RememberMeToken', 'getProviderKey', 'getFirewallName'),
new MethodCallRename('Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken', 'setProviderKey', 'setFirewallName'),
new MethodCallRename('Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken', 'getProviderKey', 'getFirewallName'),
new MethodCallRename('Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken', 'setProviderKey', 'setFirewallName'),
new MethodCallRename('Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken', 'getProviderKey', 'getFirewallName'),
new MethodCallRename('Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler', 'setProviderKey', 'setFirewallName'),
new MethodCallRename('Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler', 'getProviderKey', 'getFirewallName'),
]),
]]);
};

0 comments on commit 89e75fe

Please sign in to comment.