<?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 getSuluForm_FormTrashItemHandlerService extends App_KernelProdContainer
{
    /*
     * Gets the private 'sulu_form.form_trash_item_handler' shared service.
     *
     * @return \Sulu\Bundle\FormBundle\Trash\FormTrashItemHandler
     */
    public static function do($container, $lazyLoad = true)
    {
        $a = ($container->services['doctrine.orm.default_entity_manager'] ?? self::getDoctrine_Orm_DefaultEntityManagerService($container));

        if (isset($container->privates['sulu_form.form_trash_item_handler'])) {
            return $container->privates['sulu_form.form_trash_item_handler'];
        }
        $b = ($container->privates['sulu_activity.domain_event_collector'] ?? self::getSuluActivity_DomainEventCollectorService($container));

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

        return $container->privates['sulu_form.form_trash_item_handler'] = new \Sulu\Bundle\FormBundle\Trash\FormTrashItemHandler(($container->privates['sulu_trash.trash_item_repository'] ?? self::getSuluTrash_TrashItemRepositoryService($container)), $a, ($container->privates['sulu_trash.doctrine_restore_helper'] ?? $container->load('getSuluTrash_DoctrineRestoreHelperService')), $b);
    }
}
