8000 [SecurityBundle] Remove deprecated service and code · symfony/symfony@ad61d6f · GitHub
[go: up one dir, main page]

Skip to content

Commit ad61d6f

Browse files
committed
[SecurityBundle] Remove deprecated service and code
1 parent 9dd6064 commit ad61d6f

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

UPGRADE-5.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ SecurityBundle
490490
changed to underscores.
491491
Before: `my-cookie` deleted the `my_cookie` cookie (with an underscore).
492492
After: `my-cookie` deletes the `my-cookie` cookie (with a dash).
493+
* Removed the `security.user.provider.in_memory.user` service.
493494

494495
Serializer
495496
----------

src/Symfony/Bundle/SecurityBundle/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ CHANGELOG
1515
* Removed the `threads` encoder option
1616
* Removed the `security.authentication.trust_resolver.anonymous_class` parameter
1717
* Removed the `security.authentication.trust_resolver.rememberme_class` parameter
18+
* Removed the `security.user.provider.in_memory.user` service.
1819

1920
4.4.0
2021
-----

src/Symfony/Bundle/SecurityBundle/Resources/config/security.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@
183183
</service>
184184

185185
<service id="security.user.provider.in_memory" class="Symfony\Component\Security\Core\User\InMemoryUserProvider" abstract="true" />
186-
<service id="security.user.provider.in_memory.user" class="Symfony\Component\Security\Core\User\User" abstract="true">
187-
<deprecated>The "%service_id%" service is deprecated since Symfony 4.1.</deprecated>
188-
</service>
189186

190187
<service id="security.user.provider.ldap" class="Symfony\Component\Ldap\Security\LdapUserProvider" abstract="true">
191188
<argument /> <!-- security.ldap.ldap -->

src/Symfony/Bundle/SecurityBundle/Security/LazyFirewallContext.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,7 @@ public function __invoke(RequestEvent $event)
5151
$this->tokenStorage->setInitializer(function () use ($event) {
5252
$event = new LazyResponseEvent($event);
5353
foreach (parent::getListeners() as $listener) {
54-
if (\is_callable($listener)) {
55-
$listener($event);
56-
} else {
57-
@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);
58-
$listener->handle($event);
59-
}
54+
$listener($event);
6055
}
6156
});
6257

0 commit comments

Comments
 (0)
0