private function loadCommands(ContainerBuilder $container, $user)
    {
        $container->setDefinition(
            'bengor.user.command.create_' . $user . '_command',
            (new Definition(CreateUserCommand::class))->addTag('console.command')
        );

        $container->setDefinition(
            'bengor.user.command.change_' . $user . '_password_command',
            (new Definition(ChangePasswordCommand::class))->addTag('console.command')
        );

        $container->setDefinition(
            'bengor.user.command.purge_outdated_' . $user . '_invitation_tokens_command',
            (new Definition(PurgeOutdatedInvitationTokensCommand::class))->addTag('console.command')
        );

        $container->setDefinition(
            'bengor.user.command.purge_outdated_' . $user . '_remember_password_tokens_command',
            (new Definition(PurgeOutdatedRememberPasswordTokensCommand::class))->addTag('console.command')
        );
    }
private function loadCommands(ContainerBuilder $container, $user)
    {
        $container->setDefinition(
            'bengor.user.command.create_' . $user . '_command',
            (new Definition(CreateUserCommand::class))->addTag('console.command')
        );

        $container->setDefinition(
            'bengor.user.command.change_' . $user . '_password_command',
            (new Definition(ChangePasswordCommand::class))->addTag('console.command')
        );

        $container->setDefinition(
            'bengor.user.command.purge_outdated_' . $user . '_invitation_tokens_command',
            (new Definition(PurgeOutdatedInvitationTokensCommand::class))->addTag('console.command')
        );

        $container->setDefinition(
            'bengor.user.command.purge_outdated_' . $user . '_remember_password_tokens_command',
            (new Definition(PurgeOutdatedRememberPasswordTokensCommand::class))->addTag('console.command')
        );
    }
private function loadCommands ( ContainerBuilder $ container , $ user ) { $ container -> setDefinition ( 'bengor.user.command.create_' . $ user . '_command' , ( new Definition ( CreateUserCommand :: class ) ) -> addTag ( 'console.command' ) ) ; $ container -> setDefinition ( 'bengor.user.command.change_' . $ user . '_password_command' , ( new Definition ( ChangePasswordCommand :: class ) ) -> addTag ( 'console.command' ) ) ; $ container -> setDefinition ( 'bengor.user.command.purge_outdated_' . $ user . '_invitation_tokens_command' , ( new Definition ( PurgeOutdatedInvitationTokensCommand :: class ) ) -> addTag ( 'console.command' ) ) ; $ container -> setDefinition ( 'bengor.user.command.purge_outdated_' . $ user . '_remember_password_tokens_command' , ( new Definition ( PurgeOutdatedRememberPasswordTokensCommand :: class ) ) -> addTag ( 'console.command' ) ) ; }
Loads commands as a service inside Symfony console.

@param ContainerBuilder $container The container
@param string           $user      The user name
Loads commands as a service inside Symfony console .