<?php

namespace Container8hLddcF;

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 getSuluPage_Webspace_Serializer_EventSubscriberService extends App_KernelDevDebugContainer
{
    /**
     * Gets the private 'sulu_page.webspace.serializer.event_subscriber' shared service.
     *
     * @return \Sulu\Bundle\PageBundle\EventListener\WebspaceSerializeEventSubscriber
     */
    public static function do($container, $lazyLoad = true)
    {
        include_once \dirname(__DIR__, 5).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'jms'.\DIRECTORY_SEPARATOR.'serializer'.\DIRECTORY_SEPARATOR.'src'.\DIRECTORY_SEPARATOR.'EventDispatcher'.\DIRECTORY_SEPARATOR.'EventSubscriberInterface.php';
        include_once \dirname(__DIR__, 5).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'sulu'.\DIRECTORY_SEPARATOR.'sulu'.\DIRECTORY_SEPARATOR.'src'.\DIRECTORY_SEPARATOR.'Sulu'.\DIRECTORY_SEPARATOR.'Bundle'.\DIRECTORY_SEPARATOR.'PageBundle'.\DIRECTORY_SEPARATOR.'EventListener'.\DIRECTORY_SEPARATOR.'WebspaceSerializeEventSubscriber.php';
        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.'Webspace'.\DIRECTORY_SEPARATOR.'Url'.\DIRECTORY_SEPARATOR.'WebspaceUrlProviderInterface.php';
        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.'Webspace'.\DIRECTORY_SEPARATOR.'Url'.\DIRECTORY_SEPARATOR.'WebspaceUrlChainProvider.php';
        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.'Webspace'.\DIRECTORY_SEPARATOR.'Url'.\DIRECTORY_SEPARATOR.'WebspaceUrlProvider.php';
        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.'CustomUrl'.\DIRECTORY_SEPARATOR.'WebspaceCustomUrlProvider.php';

        $a = ($container->services['sulu_custom_urls.manager'] ?? $container->load('getSuluCustomUrls_ManagerService'));

        if (isset($container->privates['sulu_page.webspace.serializer.event_subscriber'])) {
            return $container->privates['sulu_page.webspace.serializer.event_subscriber'];
        }
        $b = ($container->privates['sulu.content.resource_locator.strategy_pool'] ?? self::getSulu_Content_ResourceLocator_StrategyPoolService($container));

        if (isset($container->privates['sulu_page.webspace.serializer.event_subscriber'])) {
            return $container->privates['sulu_page.webspace.serializer.event_subscriber'];
        }
        $c = ($container->privates['sulu_security.access_control_manager'] ?? self::getSuluSecurity_AccessControlManagerService($container));

        if (isset($container->privates['sulu_page.webspace.serializer.event_subscriber'])) {
            return $container->privates['sulu_page.webspace.serializer.event_subscriber'];
        }

        return $container->privates['sulu_page.webspace.serializer.event_subscriber'] = new \Sulu\Bundle\PageBundle\EventListener\WebspaceSerializeEventSubscriber(($container->services['sulu_core.webspace.webspace_manager'] ?? self::getSuluCore_Webspace_WebspaceManagerService($container)), new \Sulu\Component\Webspace\Url\WebspaceUrlChainProvider([new \Sulu\Component\Webspace\Url\WebspaceUrlProvider(), new \Sulu\Component\CustomUrl\WebspaceCustomUrlProvider($a)]), $b, $c, ($container->privates['security.token_storage'] ?? self::getSecurity_TokenStorageService($container)), 'dev');
    }
}
