Skip to content

Commit 0d72e82

Browse files
committed
minor #23523 [SecurityBundle] Clarify deprecation in UserPasswordEncoderCommand::getContainer (ro0NL)
This PR was merged into the 3.3 branch. Discussion ---------- [SecurityBundle] Clarify deprecation in UserPasswordEncoderCommand::getContainer | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> @ogizanagi in 4.0 it will simply extend `Command` right.. wdyt? Also we dont deprecate `setContainer` is that intentional? Commits ------- 7ea2d04 [SecurityBundle] Clarify deprecation in UserPasswordEncoderCommand::getContainer
2 parents de1143b + 7ea2d04 commit 0d72e82

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

UPGRADE-4.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ SecurityBundle
443443

444444
* The `UserPasswordEncoderCommand` class does not allow `null` as the first argument anymore.
445445

446-
* `UserPasswordEncoderCommand` does not implement `ContainerAwareInterface` anymore.
446+
* `UserPasswordEncoderCommand` does not extend `ContainerAwareCommand` nor implement `ContainerAwareInterface` anymore.
447447

448448
Serializer
449449
----------

src/Symfony/Bundle/SecurityBundle/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CHANGELOG
77
* Deprecated instantiating `UserPasswordEncoderCommand` without its constructor
88
arguments fully provided.
99
* Deprecated `UserPasswordEncoderCommand::getContainer()` and relying on the
10-
`ContainerAwareInterface` interface for this command.
10+
`ContainerAwareCommand` sub class or `ContainerAwareInterface` implementation for this command.
1111
* Deprecated the `FirewallMap::$map` and `$container` properties.
1212
* [BC BREAK] Keys of the `users` node for `in_memory` user provider are no longer normalized.
1313
* deprecated `FirewallContext::getListeners()`

src/Symfony/Bundle/SecurityBundle/Command/UserPasswordEncoderCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(EncoderFactoryInterface $encoderFactory = null, arra
5151
*/
5252
protected function getContainer()
5353
{
54-
@trigger_error(sprintf('Method "%s" is deprecated since version 3.3 and "%s" won\'t implement "%s" anymore in 4.0.', __METHOD__, __CLASS__, ContainerAwareInterface::class), E_USER_DEPRECATED);
54+
@trigger_error(sprintf('Method "%s" is deprecated since version 3.3 and "%s" won\'t extend "%s" nor implement "%s" anymore in 4.0.', __METHOD__, __CLASS__, ContainerAwareCommand::class, ContainerAwareInterface::class), E_USER_DEPRECATED);
5555

5656
return parent::getContainer();
5757
}

0 commit comments

Comments
 (0)