<?php

namespace ContainerYHymreF;

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_Document_Serializer_Subscriber_LocaleService extends App_KernelProdContainer
{
    /*
     * Gets the private 'sulu_page.document.serializer.subscriber.locale' shared service.
     *
     * @return \Sulu\Bundle\PageBundle\Serializer\Subscriber\LocaleSubscriber
     */
    public static function do($container, $lazyLoad = true)
    {
        $a = ($container->services['sulu_document_manager.document_inspector'] ?? self::getSuluDocumentManager_DocumentInspectorService($container));

        if (isset($container->privates['sulu_page.document.serializer.subscriber.locale'])) {
            return $container->privates['sulu_page.document.serializer.subscriber.locale'];
        }

        return $container->privates['sulu_page.document.serializer.subscriber.locale'] = new \Sulu\Bundle\PageBundle\Serializer\Subscriber\LocaleSubscriber($a, ($container->privates['sulu_document_manager.document_registry'] ??= new \Sulu\Component\DocumentManager\DocumentRegistry('en')));
    }
}
