8000 Prevent auto-registration of UserPasswordEncoderCommand · symfony/symfony@6c634d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6c634d7

Browse files
committed
Prevent auto-registration of UserPasswordEncoderCommand
1 parent 82ec56b commit 6c634d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ public function load(array $configs, ContainerBuilder $container)
9898

9999
if ($config['encoders']) {
100100
$this->createEncoders($config['encoders'], $container);
101+
}
101102

102-
if (class_exists(Application::class)) {
103-
$loader->load('console.xml');
104-
$container->getDefinition('security.console.user_password_encoder_command')->replaceArgument(1, array_keys($config['encoders']));
105-
}
103+
if (class_exists(Application::class)) {
104+
$loader->load('console.xml');
105+
$container->getDefinition('security.console.user_password_encoder_command')->replaceArgument(1, array_keys($config['encoders']));
106106
}
107107

108108
// load ACL

0 commit comments

Comments
 (0)
0