<?php

namespace ContainerS8JkUPu;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
 * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
 */
class getSuluResourceSegment_Document_Subscriber_ResourceSegmentService extends App_KernelDevDebugContainer
{
    /**
     * Gets the private 'sulu_resource_segment.document.subscriber.resource_segment' shared service.
     *
     * @return \Sulu\Component\Content\Document\Subscriber\ResourceSegmentSubscriber
     */
    public static function do($container, $lazyLoad = true)
    {
        include_once \dirname(__DIR__, 5).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'sulu'.\DIRECTORY_SEPARATOR.'sulu'.\DIRECTORY_SEPARATOR.'src'.\DIRECTORY_SEPARATOR.'Sulu'.\DIRECTORY_SEPARATOR.'Component'.\DIRECTORY_SEPARATOR.'Content'.\DIRECTORY_SEPARATOR.'Document'.\DIRECTORY_SEPARATOR.'Subscriber'.\DIRECTORY_SEPARATOR.'ResourceSegmentSubscriber.php';

        $a = ($container->services['sulu_document_manager.document_manager'] ?? self::getSuluDocumentManager_DocumentManagerService($container));

        if (isset($container->privates['sulu_resource_segment.document.subscriber.resource_segment'])) {
            return $container->privates['sulu_resource_segment.document.subscriber.resource_segment'];
        }
        $b = ($container->services['sulu_document_manager.document_inspector'] ?? self::getSuluDocumentManager_DocumentInspectorService($container));

        if (isset($container->privates['sulu_resource_segment.document.subscriber.resource_segment'])) {
            return $container->privates['sulu_resource_segment.document.subscriber.resource_segment'];
        }
        $c = ($container->services['doctrine_phpcr.session'] ?? self::getDoctrinePhpcr_SessionService($container));

        if (isset($container->privates['sulu_resource_segment.document.subscriber.resource_segment'])) {
            return $container->privates['sulu_resource_segment.document.subscriber.resource_segment'];
        }

        return $container->privates['sulu_resource_segment.document.subscriber.resource_segment'] = new \Sulu\Component\Content\Document\Subscriber\ResourceSegmentSubscriber(($container->services['sulu_document_manager.property_encoder'] ?? self::getSuluDocumentManager_PropertyEncoderService($container)), $a, $b, ($container->privates['sulu.content.resource_locator.strategy_pool'] ?? self::getSulu_Content_ResourceLocator_StrategyPoolService($container)), $c, $c);
    }
}
