<?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 getSuluDocumentManager_Document_Subscriber_WorkflowStageService extends App_KernelProdContainer
{
    /*
     * Gets the private 'sulu_document_manager.document.subscriber.workflow_stage' shared service.
     *
     * @return \Sulu\Component\Content\Document\Subscriber\WorkflowStageSubscriber
     */
    public static function do($container, $lazyLoad = true)
    {
        $a = ($container->services['sulu_document_manager.document_inspector'] ?? self::getSuluDocumentManager_DocumentInspectorService($container));

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

        if (isset($container->privates['sulu_document_manager.document.subscriber.workflow_stage'])) {
            return $container->privates['sulu_document_manager.document.subscriber.workflow_stage'];
        }
        $c = ($container->services['sulu_document_manager.live_session'] ?? self::getSuluDocumentManager_LiveSessionService($container));

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

        return $container->privates['sulu_document_manager.document.subscriber.workflow_stage'] = new \Sulu\Component\Content\Document\Subscriber\WorkflowStageSubscriber(($container->services['sulu_document_manager.property_encoder'] ?? self::getSuluDocumentManager_PropertyEncoderService($container)), $a, $b, $c);
    }
}
