Skip to content

Commit 8e6cc01

Browse files
minor #34271 [SecurityBundle] Remove deprecated service and code (fancyweb)
This PR was merged into the 5.0-dev branch. Discussion ---------- [SecurityBundle] Remove deprecated service and code | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Remove deprecated service in #25839 and deprecated code in #33676. Commits ------- ad61d6f [SecurityBundle] Remove deprecated service and code
2 parents 1351208 + ad61d6f commit 8e6cc01

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
@@ -491,6 +491,7 @@ SecurityBundle
491491
changed to underscores.
492492
Before: `my-cookie` deleted the `my_cookie` cookie (with an underscore).
493493
After: `my-cookie` deletes the `my-cookie` cookie (with a dash).
494+
* Removed the `security.user.provider.in_memory.user` service.
494495

495496
Serializer
496497
----------

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy