<?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 getSuluAdmin_AdminPoolService extends App_KernelProdContainer
{
    /*
     * Gets the public 'sulu_admin.admin_pool' shared service.
     *
     * @return \Sulu\Bundle\AdminBundle\Admin\AdminPool
     */
    public static function do($container, $lazyLoad = true)
    {
        $container->services['sulu_admin.admin_pool'] = $instance = new \Sulu\Bundle\AdminBundle\Admin\AdminPool();

        $a = new \Sulu\Bundle\AdminBundle\Admin\View\ViewBuilderFactory();
        $b = ($container->services['sulu_security.security_checker'] ?? self::getSuluSecurity_SecurityCheckerService($container));
        $c = ($container->services['sulu.core.localization_manager'] ?? $container->load('getSulu_Core_LocalizationManagerService'));
        $d = ($container->services['router'] ?? self::getRouterService($container));
        $e = ($container->services['sulu_core.webspace.webspace_manager'] ?? self::getSuluCore_Webspace_WebspaceManagerService($container));
        $f = new \Sulu\Bundle\ActivityBundle\Infrastructure\Sulu\Admin\View\ActivityViewBuilderFactory($a, $b);
        $g = new \Sulu\Bundle\ReferenceBundle\Infrastructure\Sulu\Admin\View\ReferenceViewBuilderFactory($a, $b);

        $instance->addAdmin(new \Sulu\Bundle\SearchBundle\Admin\SearchAdmin($a));
        $instance->addAdmin(new \Sulu\Bundle\ContactBundle\Admin\ContactAdmin($a, $b, ($container->services['doctrine'] ?? self::getDoctrineService($container))));
        $instance->addAdmin(new \Sulu\Bundle\MediaBundle\Admin\MediaAdmin($a, $b, $c, $d, $e, $f, $g));
        $instance->addAdmin(new \Sulu\Bundle\CategoryBundle\Admin\CategoryAdmin($a, $b, $c));
        $instance->addAdmin(new \Sulu\Bundle\SnippetBundle\Admin\SnippetAdmin($a, $b, $e, true, $f, $g));
        $instance->addAdmin(new \Sulu\Bundle\PageBundle\Admin\PageAdmin($a, $e, $b, ($container->services['sulu.phpcr.session'] ?? self::getSulu_Phpcr_SessionService($container)), ($container->privates['sulu_page.teaser.provider_pool'] ?? $container->load('getSuluPage_Teaser_ProviderPoolService')), false, $f));
        $instance->addAdmin(new \Sulu\Bundle\TagBundle\Admin\TagAdmin($a, $b));
        $instance->addAdmin(new \Sulu\Bundle\WebsiteBundle\Admin\WebsiteAdmin($a, $e, $b, $d));
        $instance->addAdmin(new \Sulu\Bundle\CustomUrlBundle\Admin\CustomUrlAdmin($e, $a, $b));
        $instance->addAdmin(new \Sulu\Bundle\PreviewBundle\Admin\PreviewAdmin($d, 500, 'auto', $container->parameters['kernel.bundles']));
        $instance->addAdmin(new \Sulu\Bundle\ActivityBundle\Infrastructure\Sulu\Admin\ActivityAdmin($a, $b));
        $instance->addAdmin(new \Sulu\Bundle\TrashBundle\Infrastructure\Sulu\Admin\TrashAdmin($a, $b, $c, new RewindableGenerator(function () use ($container) {
            yield 'accounts' => ($container->privates['sulu_contact.account_trash_item_handler'] ?? $container->load('getSuluContact_AccountTrashItemHandlerService'));
            yield 'contacts' => ($container->privates['sulu_contact.contact_trash_item_handler'] ?? $container->load('getSuluContact_ContactTrashItemHandlerService'));
            yield 'media' => ($container->privates['sulu_media.media_trash_item_handler'] ?? $container->load('getSuluMedia_MediaTrashItemHandlerService'));
            yield 'collections' => ($container->privates['sulu_media.collection_trash_item_handler'] ?? $container->load('getSuluMedia_CollectionTrashItemHandlerService'));
            yield 'categories' => ($container->privates['sulu_category.category_trash_item_handler'] ?? $container->load('getSuluCategory_CategoryTrashItemHandlerService'));
            yield 'snippets' => ($container->privates['sulu_snippet.snippet_trash_item_handler'] ?? $container->load('getSuluSnippet_SnippetTrashItemHandlerService'));
            yield 'pages' => ($container->privates['sulu_page.page_trash_item_handler'] ?? $container->load('getSuluPage_PageTrashItemHandlerService'));
            yield 'tags' => ($container->privates['sulu_tag.tag_trash_item_handler'] ?? $container->load('getSuluTag_TagTrashItemHandlerService'));
            yield 'analytics' => ($container->privates['sulu_website.analytics_trash_item_handler'] ?? $container->load('getSuluWebsite_AnalyticsTrashItemHandlerService'));
            yield 'custom_urls' => ($container->privates['sulu_custom_urls.custom_url_trash_item_handler'] ?? $container->load('getSuluCustomUrls_CustomUrlTrashItemHandlerService'));
            yield 'forms' => ($container->privates['sulu_form.form_trash_item_handler'] ?? $container->load('getSuluForm_FormTrashItemHandlerService'));
        }, 11)));
        $instance->addAdmin(new \Sulu\Bundle\ReferenceBundle\Infrastructure\Sulu\Admin\ReferenceAdmin());
        $instance->addAdmin(new \Sulu\Bundle\FormBundle\Admin\FormAdmin($b, $a, $e));
        $instance->addAdmin(new \Sulu\Bundle\SecurityBundle\Admin\SecurityAdmin($a, $b, $d, ($container->services['translator'] ?? self::getTranslatorService($container)), $instance, $container->parameters['sulu_admin.resources']));
        $instance->addAdmin(new \Sulu\Bundle\FormBundle\Admin\DynamicListAdmin($a, $container->parameters['sulu_form.dynamic_lists.config']));

        return $instance;
    }
}
