<?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_Subscriber_Behavior_AutoNameService extends App_KernelProdContainer
{
    /*
     * Gets the private 'sulu_document_manager.subscriber.behavior.auto_name' shared service.
     *
     * @return \Sulu\Component\DocumentManager\Subscriber\Behavior\Path\AutoNameSubscriber
     */
    public static function do($container, $lazyLoad = true)
    {
        $a = ($container->services['sulu_document_manager.live_session'] ?? self::getSuluDocumentManager_LiveSessionService($container));

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

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

        return $container->privates['sulu_document_manager.subscriber.behavior.auto_name'] = new \Sulu\Component\DocumentManager\Subscriber\Behavior\Path\AutoNameSubscriber(($container->privates['sulu_document_manager.document_registry'] ??= new \Sulu\Component\DocumentManager\DocumentRegistry('en')), new \Sulu\Component\DocumentManager\Slugifier\NodeNameSlugifier(($container->privates['sulu_document_manager.slugifier'] ?? $container->load('getSuluDocumentManager_SlugifierService'))), new \Sulu\Component\DocumentManager\NameResolver(), ($container->privates['sulu_document_manager.node_manager'] ?? self::getSuluDocumentManager_NodeManagerService($container)), $a, $b);
    }
}
