Skip to content

Commit

Permalink
minor #34271 [SecurityBundle] Remove deprecated service and code (fan…
Browse files Browse the repository at this point in the history
…cyweb)

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
  • Loading branch information
nicolas-grekas committed Nov 7, 2019
2 parents 1351208 + ad61d6f commit 8e6cc01
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions UPGRADE-5.0.md
Expand Up @@ -491,6 +491,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
----------
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Bundle/SecurityBundle/CHANGELOG.md
Expand Up @@ -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
-----
Expand Down
Expand Up @@ -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 -->
Expand Down
Expand Up @@ -51,12 +51,7 @@ public function __invoke(RequestEvent $event)
$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);
}
});

Expand Down

0 comments on commit 8e6cc01

Please sign in to comment.