src/DependencyInjection/IdmAdvertisingExtension.php
/**
     * @param array $config      Configuration for Network
     * @param bool  $advertising enable Advertisin bundle enabled/disabled
     */
@param array $config      Configuration for Network
@param bool  $advertising enable Advertisin bundle enabled/disabled
@param array $config Configuration for Network @param bool $advertising enable Advertisin bundle enabled / disabled
private function configureNetworkAndService(ContainerBuilder $container, array $config, bool $advertisingEnable): string
    {
        $definition = $container->getDefinition($config['service_network']);
        $definition->addMethodCall('configure', [$config]);
        $definition->addMethodCall('disableAdvertising'); 
        if ($advertisingEnable)
        {
            $definition->addMethodCall('enableAdvertising');
        }
        return $config['service_network'];
    }
private function configureNetworkAndService ( ContainerBuilder $ container , array $ config , bool $ advertisingEnable ) : string { $ definition = $ container -> getDefinition ( $ config [ 'service_network' ] ) ; $ definition -> addMethodCall ( 'configure' , [ $ config ] ) ; $ definition -> addMethodCall ( 'disableAdvertising' ) ; if ( $ advertisingEnable ) { $ definition -> addMethodCall ( 'enableAdvertising' ) ; } return $ config [ 'service_network' ] ; }
@param array $config      Configuration for Network
 @param bool  $advertising enable Advertisin bundle enabled/disabled
@param array $config Configuration for Network @param bool $advertising enable Advertisin bundle enabled / disabled
//-- Disabled by default