private function getServiceArgument(ContainerBuilder $container, string $id)
    {
        if ($this->callMode === self::CALL_MODE_ID) {
            $container->getDefinition($id)->setPublic(true);

            return $id;
        }

        if ($this->callMode === self::CALL_MODE_LAZY_SERVICE) {
            $container->getDefinition($id)->setLazy(true);
        }

        return new Reference($id);
    }
private function getServiceArgument(ContainerBuilder $container, string $id)
    {
        if ($this->callMode === self::CALL_MODE_ID) {
            $container->getDefinition($id)->setPublic(true);

            return $id;
        }

        if ($this->callMode === self::CALL_MODE_LAZY_SERVICE) {
            $container->getDefinition($id)->setLazy(true);
        }

        return new Reference($id);
    }
private function getServiceArgument ( ContainerBuilder $ container , string $ id ) { if ( $ this -> callMode === self :: CALL_MODE_ID ) { $ container -> getDefinition ( $ id ) -> setPublic ( true ) ; return $ id ; } if ( $ this -> callMode === self :: CALL_MODE_LAZY_SERVICE ) { $ container -> getDefinition ( $ id ) -> setLazy ( true ) ; } return new Reference ( $ id ) ; }
Can be overwritten in extended classes

@param ContainerBuilder $container
@param string $id
@return mixed returns argument to pass to the collector service
Can be overwritten in extended classes