<?php

namespace ContainerEKZIeE8;

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

        if (isset($container->privates['sulu_page.permission_listener'])) {
            return $container->privates['sulu_page.permission_listener'];
        }
        $b = ($container->services['massive_search.search_manager'] ?? $container->load('getMassiveSearch_SearchManagerService'));

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

        return $container->privates['sulu_page.permission_listener'] = new \Sulu\Bundle\PageBundle\Search\EventListener\PermissionListener($a, $b);
    }
}
