private function configureCommandSecurityVoter(array $mergedConfig, ContainerBuilder $container)
    {
        if (!$container->has('tactician.middleware.security_voter')) {
            $definition = new Definition(
                HandleCommandVoter::class,
                [
                    new Reference('security.access.decision_manager'),
                    $mergedConfig['security']
                ]
            );
            $definition->addTag('security.voter');
            $container->setDefinition('tactician.middleware.security_voter', $definition);
        }
    }
private function configureCommandSecurityVoter(array $mergedConfig, ContainerBuilder $container)
    {
        if (!$container->has('tactician.middleware.security_voter')) {
            $definition = new Definition(
                HandleCommandVoter::class,
                [
                    new Reference('security.access.decision_manager'),
                    $mergedConfig['security']
                ]
            );
            $definition->addTag('security.voter');
            $container->setDefinition('tactician.middleware.security_voter', $definition);
        }
    }
private function configureCommandSecurityVoter ( array $ mergedConfig , ContainerBuilder $ container ) { if ( ! $ container -> has ( 'tactician.middleware.security_voter' ) ) { $ definition = new Definition ( HandleCommandVoter :: class , [ new Reference ( 'security.access.decision_manager' ) , $ mergedConfig [ 'security' ] ] ) ; $ definition -> addTag ( 'security.voter' ) ; $ container -> setDefinition ( 'tactician.middleware.security_voter' , $ definition ) ; } }
Configure the security voter.

@param array $mergedConfig
@param ContainerBuilder $container
Configure the security voter .