<?php

namespace ContainerBnDMNJc;

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_DocumentManager_EventSubscriberService extends App_KernelProdContainer
{
    /*
     * Gets the private 'sulu_page.document_manager.event_subscriber' shared service.
     *
     * @return \Sulu\Bundle\PageBundle\EventListener\DomainEventSubscriber
     */
    public static function do($container, $lazyLoad = true)
    {
        $a = ($container->privates['sulu_document_manager.document_domain_event_collector'] ?? self::getSuluDocumentManager_DocumentDomainEventCollectorService($container));

        if (isset($container->privates['sulu_page.document_manager.event_subscriber'])) {
            return $container->privates['sulu_page.document_manager.event_subscriber'];
        }
        $b = ($container->services['sulu_document_manager.document_manager'] ?? self::getSuluDocumentManager_DocumentManagerService($container));

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

        return $container->privates['sulu_page.document_manager.event_subscriber'] = new \Sulu\Bundle\PageBundle\EventListener\DomainEventSubscriber($a, $b, ($container->services['sulu_document_manager.property_encoder'] ?? self::getSuluDocumentManager_PropertyEncoderService($container)));
    }
}
