<?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 getSuluRoute_Subscriber_PageTreeRouteService extends App_KernelProdContainer
{
    /*
     * Gets the private 'sulu_route.subscriber.page_tree_route' shared service.
     *
     * @return \Sulu\Bundle\RouteBundle\Document\Subscriber\PageTreeRouteSubscriber
     */
    public static function do($container, $lazyLoad = true)
    {
        $a = ($container->services['sulu_document_manager.document_manager'] ?? self::getSuluDocumentManager_DocumentManagerService($container));

        if (isset($container->privates['sulu_route.subscriber.page_tree_route'])) {
            return $container->privates['sulu_route.subscriber.page_tree_route'];
        }
        $b = ($container->services['sulu_document_manager.document_inspector'] ?? self::getSuluDocumentManager_DocumentInspectorService($container));

        if (isset($container->privates['sulu_route.subscriber.page_tree_route'])) {
            return $container->privates['sulu_route.subscriber.page_tree_route'];
        }
        $c = ($container->services['doctrine_phpcr.session'] ?? self::getDoctrinePhpcr_SessionService($container));

        if (isset($container->privates['sulu_route.subscriber.page_tree_route'])) {
            return $container->privates['sulu_route.subscriber.page_tree_route'];
        }
        $d = ($container->services['sulu_document_manager.property_encoder'] ?? self::getSuluDocumentManager_PropertyEncoderService($container));
        $e = ($container->services['sulu_page.structure.factory'] ?? self::getSuluPage_Structure_FactoryService($container));

        return $container->privates['sulu_route.subscriber.page_tree_route'] = new \Sulu\Bundle\RouteBundle\Document\Subscriber\PageTreeRouteSubscriber($a, $d, $b, $e, $c, new \Sulu\Bundle\RouteBundle\PageTree\PageTreeRepository($a, $e, $d, $b));
    }
}
