<?php

namespace ContainerS8JkUPu;

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 getSuluSecurity_PhpcrSecuritySubscriberService extends App_KernelDevDebugContainer
{
    /**
     * Gets the private 'sulu_security.phpcr_security_subscriber' shared service.
     *
     * @return \Sulu\Bundle\SecurityBundle\EventListener\PhpcrSecuritySubscriber
     */
    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.'Bundle'.\DIRECTORY_SEPARATOR.'SecurityBundle'.\DIRECTORY_SEPARATOR.'EventListener'.\DIRECTORY_SEPARATOR.'PhpcrSecuritySubscriber.php';

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

        if (isset($container->privates['sulu_security.phpcr_security_subscriber'])) {
            return $container->privates['sulu_security.phpcr_security_subscriber'];
        }
        $b = ($container->services['doctrine.orm.default_entity_manager'] ?? self::getDoctrine_Orm_DefaultEntityManagerService($container));

        if (isset($container->privates['sulu_security.phpcr_security_subscriber'])) {
            return $container->privates['sulu_security.phpcr_security_subscriber'];
        }
        $c = ($container->services['sulu.repository.role'] ?? self::getSulu_Repository_RoleService($container));

        return $container->privates['sulu_security.phpcr_security_subscriber'] = new \Sulu\Bundle\SecurityBundle\EventListener\PhpcrSecuritySubscriber(new \Sulu\Component\Security\Authorization\AccessControl\PhpcrAccessControlProvider($a, $c, $container->parameters['permissions']), new \Sulu\Component\Security\Authorization\AccessControl\DoctrineAccessControlProvider($b, $c, ($container->services['sulu.repository.access_control'] ?? self::getSulu_Repository_AccessControlService($container)), ($container->services['sulu_security.mask_converter'] ?? self::getSuluSecurity_MaskConverterService($container))));
    }
}
