private function userProvider(ContainerBuilder $container, $user)
    {
        $container->setDefinition(
            'bengor.user_bundle.security.' . $user . '_provider',
            new Definition(
                UserProvider::class, [
                    $container->getDefinition(
                        'bengor.user.application.query.' . $user . '_of_email'
                    ),
                    $container->getDefinition(
                        'bengor.user_bundle.security.' . $user . '_symfony_data_transformer'
                    ),
                ]
            )
        )->setPublic(false);

        $container->setAlias(
            'bengor_user.' . $user . '.provider',
            'bengor.user_bundle.security.' . $user . '_provider'
        );
    }
private function userProvider(ContainerBuilder $container, $user)
    {
        $container->setDefinition(
            'bengor.user_bundle.security.' . $user . '_provider',
            new Definition(
                UserProvider::class, [
                    $container->getDefinition(
                        'bengor.user.application.query.' . $user . '_of_email'
                    ),
                    $container->getDefinition(
                        'bengor.user_bundle.security.' . $user . '_symfony_data_transformer'
                    ),
                ]
            )
        )->setPublic(false);

        $container->setAlias(
            'bengor_user.' . $user . '.provider',
            'bengor.user_bundle.security.' . $user . '_provider'
        );
    }
private function userProvider ( ContainerBuilder $ container , $ user ) { $ container -> setDefinition ( 'bengor.user_bundle.security.' . $ user . '_provider' , new Definition ( UserProvider :: class , [ $ container -> getDefinition ( 'bengor.user.application.query.' . $ user . '_of_email' ) , $ container -> getDefinition ( 'bengor.user_bundle.security.' . $ user . '_symfony_data_transformer' ) , ] ) ) -> setPublic ( false ) ; $ container -> setAlias ( 'bengor_user.' . $ user . '.provider' , 'bengor.user_bundle.security.' . $ user . '_provider' ) ; }
Registers service of the user provider and its alias.

@param ContainerBuilder $container The container builder
@param string           $user      The user name
Registers service of the user provider and its alias .