createHashers example

$container->setParameter('security.authentication.hide_user_not_found', $config['hide_user_not_found']);

        if (class_exists(Application::class)) {
            $loader->load('debug_console.php');
        }

        $this->createFirewalls($config$container);
        $this->createAuthorization($config$container);
        $this->createRoleHierarchy($config$container);

        if ($config['password_hashers']) {
            $this->createHashers($config['password_hashers']$container);
        }

        if (class_exists(Application::class)) {
            $loader->load('console.php');

            $container->getDefinition('security.command.user_password_hash')->replaceArgument(1, array_keys($config['password_hashers']));
        }

        $container->registerForAutoconfiguration(VoterInterface::class)
            ->addTag('security.voter');

        
Home | Imprint | This part of the site doesn't use cookies.