private function replaceResolveTargetClass(ContainerBuilder $container, $tagName, $serviceId, $class): void
    {
        $def = $container->getDefinition($serviceId);

        $this->replaceClassInArguments($container, $def, $class);
        $this->replaceClassInTags($def, $tagName, $class);
    }
private function replaceResolveTargetClass(ContainerBuilder $container, $tagName, $serviceId, $class): void
    {
        $def = $container->getDefinition($serviceId);

        $this->replaceClassInArguments($container, $def, $class);
        $this->replaceClassInTags($def, $tagName, $class);
    }
private function replaceResolveTargetClass ( ContainerBuilder $ container , $ tagName , $ serviceId , $ class ) : void { $ def = $ container -> getDefinition ( $ serviceId ) ; $ this -> replaceClassInArguments ( $ container , $ def , $ class ) ; $ this -> replaceClassInTags ( $ def , $ tagName , $ class ) ; }
Replace the resolve target class.

@param ContainerBuilder $container The container service
@param string           $tagName   The tag name
@param string           $serviceId The service id of default value type
@param string           $class     The class name
Replace the resolve target class .