private function formLoginAuthenticator(ContainerBuilder $container, $routes, $user)
    {
        $container->setDefinition(
            'bengor.user_bundle.security.authenticator.form_login_' . $user . '_authenticator',
            new Definition(
                FormLoginAuthenticator::class, [
                    $container->getDefinition('router.default'),
                    $container->getDefinition('bengor_user.' . $user . '.command_bus'),
                    [
                        'login'                     => $routes[$user]['login']['name'],
                        'login_check'               => $routes[$user]['login_check']['name'],
                        'success_redirection_route' => $routes[$user]['success_redirection_route'],
                    ],
                ]
            )
        )->setPublic(false);

        $container->setAlias(
            'bengor_user.' . $user . '.form_login_authenticator',
            'bengor.user_bundle.security.authenticator.form_login_' . $user . '_authenticator'
        );
    }
private function formLoginAuthenticator(ContainerBuilder $container, $routes, $user)
    {
        $container->setDefinition(
            'bengor.user_bundle.security.authenticator.form_login_' . $user . '_authenticator',
            new Definition(
                FormLoginAuthenticator::class, [
                    $container->getDefinition('router.default'),
                    $container->getDefinition('bengor_user.' . $user . '.command_bus'),
                    [
                        'login'                     => $routes[$user]['login']['name'],
                        'login_check'               => $routes[$user]['login_check']['name'],
                        'success_redirection_route' => $routes[$user]['success_redirection_route'],
                    ],
                ]
            )
        )->setPublic(false);

        $container->setAlias(
            'bengor_user.' . $user . '.form_login_authenticator',
            'bengor.user_bundle.security.authenticator.form_login_' . $user . '_authenticator'
        );
    }
private function formLoginAuthenticator ( ContainerBuilder $ container , $ routes , $ user ) { $ container -> setDefinition ( 'bengor.user_bundle.security.authenticator.form_login_' . $ user . '_authenticator' , new Definition ( FormLoginAuthenticator :: class , [ $ container -> getDefinition ( 'router.default' ) , $ container -> getDefinition ( 'bengor_user.' . $ user . '.command_bus' ) , [ 'login' => $ routes [ $ user ] [ 'login' ] [ 'name' ] , 'login_check' => $ routes [ $ user ] [ 'login_check' ] [ 'name' ] , 'success_redirection_route' => $ routes [ $ user ] [ 'success_redirection_route' ] , ] , ] ) ) -> setPublic ( false ) ; $ container -> setAlias ( 'bengor_user.' . $ user . '.form_login_authenticator' , 'bengor.user_bundle.security.authenticator.form_login_' . $ user . '_authenticator' ) ; }
Registers service of the form login authenticator and its alias.

@param ContainerBuilder $container The container builder
@param array            $routes    Array which contains security routes
@param string           $user      The user name
Registers service of the form login authenticator and its alias .