<?php

namespace ContainerMmke1fB;

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_SecurityService extends App_KernelDevDebugContainer
{
    /**
     * Gets the private 'sulu_document_manager.document.subscriber.security' shared service.
     *
     * @return \Sulu\Component\Content\Document\Subscriber\SecuritySubscriber
     */
    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.'SecuritySubscriber.php';

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

        if (isset($container->privates['sulu_document_manager.document.subscriber.security'])) {
            return $container->privates['sulu_document_manager.document.subscriber.security'];
        }
        $b = ($container->privates['sulu_security.access_control_manager'] ?? self::getSuluSecurity_AccessControlManagerService($container));

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

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