<?php

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
// Returns the public 'sonata.user.admin.user' service.

include_once \dirname(__DIR__, 4).'\\vendor\\sonata-project\\admin-bundle\\src\\Admin\\AccessRegistryInterface.php';
include_once \dirname(__DIR__, 4).'\\vendor\\sonata-project\\admin-bundle\\src\\Admin\\FieldDescriptionRegistryInterface.php';
include_once \dirname(__DIR__, 4).'\\vendor\\sonata-project\\admin-bundle\\src\\Admin\\LifecycleHookProviderInterface.php';
include_once \dirname(__DIR__, 4).'\\vendor\\sonata-project\\admin-bundle\\src\\Admin\\MenuBuilderInterface.php';
include_once \dirname(__DIR__, 4).'\\vendor\\sonata-project\\admin-bundle\\src\\Admin\\ParentAdminInterface.php';
include_once \dirname(__DIR__, 4).'\\vendor\\sonata-project\\admin-bundle\\src\\Admin\\UrlGeneratorInterface.php';
include_once \dirname(__DIR__, 4).'\\vendor\\sonata-project\\admin-bundle\\src\\Admin\\AdminInterface.php';
include_once \dirname(__DIR__, 4).'\\vendor\\symfony\\security-acl\\Model\\DomainObjectInterface.php';
include_once \dirname(__DIR__, 4).'\\vendor\\sonata-project\\admin-bundle\\src\\Admin\\AdminTreeInterface.php';
include_once \dirname(__DIR__, 4).'\\vendor\\sonata-project\\admin-bundle\\src\\Admin\\AbstractAdmin.php';
include_once \dirname(__DIR__, 4).'\\src\\Admin\\Model\\UserAdmin.php';
include_once \dirname(__DIR__, 4).'\\vendor\\sonata-project\\admin-bundle\\src\\Translator\\LabelTranslatorStrategyInterface.php';
include_once \dirname(__DIR__, 4).'\\vendor\\sonata-project\\admin-bundle\\src\\Translator\\UnderscoreLabelTranslatorStrategy.php';

$this->factories['sonata.user.admin.user'] = function () {
    $instance = new \App\Admin\Model\UserAdmin('sonata.user.admin.user', 'App\\Entity\\User', 'SonataAdminBundle:CRUD');

    $instance->setUserManager(($this->services['fos_user.user_manager'] ?? $this->load('getFosUser_UserManagerService.php')));
    $instance->setTranslationDomain('SonataUserBundle');
    $instance->setLabelTranslatorStrategy(($this->services['sonata.admin.label.strategy.underscore'] ?? ($this->services['sonata.admin.label.strategy.underscore'] = new \Sonata\AdminBundle\Translator\UnderscoreLabelTranslatorStrategy())));
    $instance->setManagerType('orm');
    $instance->setModelManager(($this->services['sonata.admin.manager.orm'] ?? $this->load('getSonata_Admin_Manager_OrmService.php')));
    $instance->setFormContractor(($this->privates['sonata.admin.builder.orm_form'] ?? $this->load('getSonata_Admin_Builder_OrmFormService.php')));
    $instance->setShowBuilder(($this->privates['sonata.admin.builder.orm_show'] ?? $this->load('getSonata_Admin_Builder_OrmShowService.php')));
    $instance->setListBuilder(($this->privates['sonata.admin.builder.orm_list'] ?? $this->load('getSonata_Admin_Builder_OrmListService.php')));
    $instance->setDatagridBuilder(($this->privates['sonata.admin.builder.orm_datagrid'] ?? $this->load('getSonata_Admin_Builder_OrmDatagridService.php')));
    $instance->setTranslator(($this->services['translator'] ?? $this->getTranslatorService()), false);
    $instance->setConfigurationPool(($this->services['sonata.admin.pool'] ?? $this->getSonata_Admin_PoolService()));
    $instance->setRouteGenerator(($this->services['sonata.admin.route.default_generator'] ?? $this->load('getSonata_Admin_Route_DefaultGeneratorService.php')));
    $instance->setValidator(($this->services['validator'] ?? $this->getValidatorService()));
    $instance->setSecurityHandler(($this->privates['sonata.admin.security.handler.role'] ?? $this->load('getSonata_Admin_Security_Handler_RoleService.php')));
    $instance->setMenuFactory(($this->services['knp_menu.factory'] ?? $this->load('getKnpMenu_FactoryService.php')));
    $instance->setRouteBuilder(($this->services['sonata.admin.route.path_info'] ?? $this->load('getSonata_Admin_Route_PathInfoService.php')));
    $instance->setPagerType('default');
    $instance->setLabel('users');
    $instance->showMosaicButton(true);
    $instance->setTemplateRegistry(($this->services['sonata.user.admin.user.template_registry'] ?? $this->load('getSonata_User_Admin_User_TemplateRegistryService.php')));
    $instance->setSecurityInformation($this->parameters['sonata.admin.configuration.security.information']);
    $instance->initialize();
    $instance->addExtension(($this->services['sonata.admin.event.extension'] ?? $this->load('getSonata_Admin_Event_ExtensionService.php')));
    $instance->setFormTheme([0 => '@SonataDoctrineORMAdmin/Form/form_admin_fields.html.twig']);
    $instance->setFilterTheme([0 => '@SonataDoctrineORMAdmin/Form/filter_admin_fields.html.twig']);

    return $instance;
};

return $this->factories['sonata.user.admin.user']();
