private function userSymfonyDataTransformer(ContainerBuilder $container, $user)
    {
        $container->setDefinition(
            'bengor.user_bundle.security.' . $user . '_symfony_data_transformer',
            new Definition(
                UserSymfonyDataTransformer::class
            )
        )->setPublic(false);

        $container->setAlias(
            'bengor_user.' . $user . '.symfony_data_transformer',
            'bengor.user_bundle.security.' . $user . '_symfony_data_transformer'
        );
    }
private function userSymfonyDataTransformer(ContainerBuilder $container, $user)
    {
        $container->setDefinition(
            'bengor.user_bundle.security.' . $user . '_symfony_data_transformer',
            new Definition(
                UserSymfonyDataTransformer::class
            )
        )->setPublic(false);

        $container->setAlias(
            'bengor_user.' . $user . '.symfony_data_transformer',
            'bengor.user_bundle.security.' . $user . '_symfony_data_transformer'
        );
    }
private function userSymfonyDataTransformer ( ContainerBuilder $ container , $ user ) { $ container -> setDefinition ( 'bengor.user_bundle.security.' . $ user . '_symfony_data_transformer' , new Definition ( UserSymfonyDataTransformer :: class ) ) -> setPublic ( false ) ; $ container -> setAlias ( 'bengor_user.' . $ user . '.symfony_data_transformer' , 'bengor.user_bundle.security.' . $ user . '_symfony_data_transformer' ) ; }
Registers service of the user Symfony data transformer and its alias.

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