use Symfony\Component\Form\Extension\PasswordHasher\EventListener\PasswordHasherListener;
use Symfony\Component\Form\Extension\PasswordHasher\Type\FormTypePasswordHasherExtension;
use Symfony\Component\Form\Extension\PasswordHasher\Type\PasswordTypePasswordHasherExtension;
use Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactory;
use Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactoryInterface;
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasher;
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
return static function DContainerConfigurator
$container) { $container->
services() ->
set('security.password_hasher_factory', PasswordHasherFactory::
class) ->
args([[]]) ->
alias(PasswordHasherFactoryInterface::
class, 'security.password_hasher_factory'
) ->
set('security.user_password_hasher', UserPasswordHasher::
class) ->
args([service('security.password_hasher_factory'
)]) ->
alias('security.password_hasher', 'security.user_password_hasher'
) ->
alias(UserPasswordHasherInterface::
class, 'security.password_hasher'
) ->
set('form.listener.password_hasher', PasswordHasherListener::
class) ->
args([ service('security.password_hasher'
),
service('property_accessor'
)->
nullOnInvalid(),
])