[SecurityBundle] Remove deprecated service and code

This commit is contained in:
Thomas Calvet 2019-11-06 20:18:30 +01:00
parent 9dd60645d9
commit ad61d6f72b
4 changed files with 3 additions and 9 deletions

View File

@ -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
----------

View File

@ -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
-----

View File

@ -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 -->

View File

@ -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);
}
});