private function configurePlugin(ContainerBuilder $container, $serviceId, $pluginName, array $pluginConfig)
    {
        $pluginServiceId = $serviceId.'.plugin.'.$pluginName;

        $definition = class_exists(ChildDefinition::class)
            ? new ChildDefinition('httplug.plugin.'.$pluginName)
            : new DefinitionDecorator('httplug.plugin.'.$pluginName);

        $this->configurePluginByName($pluginName, $definition, $pluginConfig, $container, $pluginServiceId);
        $container->setDefinition($pluginServiceId, $definition);

        return $pluginServiceId;
    }
private function configurePlugin(ContainerBuilder $container, $serviceId, $pluginName, array $pluginConfig)
    {
        $pluginServiceId = $serviceId.'.plugin.'.$pluginName;

        $definition = class_exists(ChildDefinition::class)
            ? new ChildDefinition('httplug.plugin.'.$pluginName)
            : new DefinitionDecorator('httplug.plugin.'.$pluginName);

        $this->configurePluginByName($pluginName, $definition, $pluginConfig, $container, $pluginServiceId);
        $container->setDefinition($pluginServiceId, $definition);

        return $pluginServiceId;
    }
private function configurePlugin ( ContainerBuilder $ container , $ serviceId , $ pluginName , array $ pluginConfig ) { $ pluginServiceId = $ serviceId . '.plugin.' . $ pluginName ; $ definition = class_exists ( ChildDefinition :: class ) ? new ChildDefinition ( 'httplug.plugin.' . $ pluginName ) : new DefinitionDecorator ( 'httplug.plugin.' . $ pluginName ) ; $ this -> configurePluginByName ( $ pluginName , $ definition , $ pluginConfig , $ container , $ pluginServiceId ) ; $ container -> setDefinition ( $ pluginServiceId , $ definition ) ; return $ pluginServiceId ; }
Configure a plugin using the parent definition from plugins.xml.

@param ContainerBuilder $container
@param string           $serviceId
@param string           $pluginName
@param array            $pluginConfig

@return string configured service id
Configure a plugin using the parent definition from plugins . xml .