[SecurityBundle] Remove deprecated service and code
This commit is contained in:
parent
9dd60645d9
commit
ad61d6f72b
@ -490,6 +490,7 @@ SecurityBundle
|
||||
changed to underscores.
|
||||
Before: `my-cookie` deleted the `my_cookie` cookie (with an underscore).
|
||||
After: `my-cookie` deletes the `my-cookie` cookie (with a dash).
|
||||
* Removed the `security.user.provider.in_memory.user` service.
|
||||
|
||||
Serializer
|
||||
----------
|
||||
|
@ -15,6 +15,7 @@ CHANGELOG
|
||||
* Removed the `threads` encoder option
|
||||
* Removed the `security.authentication.trust_resolver.anonymous_class` parameter
|
||||
* Removed the `security.authentication.trust_resolver.rememberme_class` parameter
|
||||
* Removed the `security.user.provider.in_memory.user` service.
|
||||
|
||||
4.4.0
|
||||
-----
|
||||
|
@ -183,9 +183,6 @@
|
||||
</service>
|
||||
|
||||
<service id="security.user.provider.in_memory" class="Symfony\Component\Security\Core\User\InMemoryUserProvider" abstract="true" />
|
||||
<service id="security.user.provider.in_memory.user" class="Symfony\Component\Security\Core\User\User" abstract="true">
|
||||
<deprecated>The "%service_id%" service is deprecated since Symfony 4.1.</deprecated>
|
||||
</service>
|
||||
|
||||
<service id="security.user.provider.ldap" class="Symfony\Component\Ldap\Security\LdapUserProvider" abstract="true">
|
||||
<argument /> <!-- security.ldap.ldap -->
|
||||
|
@ -51,12 +51,7 @@ class LazyFirewallContext extends FirewallContext
|
||||
$this->tokenStorage->setInitializer(function () use ($event) {
|
||||
$event = new LazyResponseEvent($event);
|
||||
foreach (parent::getListeners() as $listener) {
|
||||
if (\is_callable($listener)) {
|
||||
$listener($event);
|
||||
} else {
|
||||
@trigger_error(sprintf('Calling the "%s::handle()" method from the firewall is deprecated since Symfony 4.3, implement "__invoke()" instead.', \get_class($listener)), E_USER_DEPRECATED);
|
||||
$listener->handle($event);
|
||||
}
|
||||
$listener($event);
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user