<?php

namespace ContainerH4AHLTQ;

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

/*
 * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
 */
class getPimCatalog_Saver_ProductModelService extends KernelProdContainer
{
    /*
     * Gets the private 'pim_catalog.saver.product_model' shared service.
     *
     * @return \Akeneo\Pim\Enrichment\Bundle\Doctrine\Common\Saver\ProductModelSaver
     */
    public static function do($container, $lazyLoad = true)
    {
        include_once \dirname(__DIR__, 4).'/vendor/akeneo/pim-community-dev/src/Akeneo/Tool/Component/StorageUtils/Saver/SaverInterface.php';
        include_once \dirname(__DIR__, 4).'/vendor/akeneo/pim-community-dev/src/Akeneo/Tool/Component/StorageUtils/Saver/BulkSaverInterface.php';
        include_once \dirname(__DIR__, 4).'/vendor/akeneo/pim-community-dev/src/Akeneo/Pim/Enrichment/Bundle/Doctrine/Common/Saver/ProductModelSaver.php';

        $a = ($container->services['doctrine.orm.default_entity_manager'] ?? $container->getDoctrine_Orm_DefaultEntityManagerService());

        if (isset($container->privates['pim_catalog.saver.product_model'])) {
            return $container->privates['pim_catalog.saver.product_model'];
        }
        $b = ($container->services['event_dispatcher'] ?? $container->getEventDispatcherService());

        if (isset($container->privates['pim_catalog.saver.product_model'])) {
            return $container->privates['pim_catalog.saver.product_model'];
        }

        return $container->privates['pim_catalog.saver.product_model'] = new \Akeneo\Pim\Enrichment\Bundle\Doctrine\Common\Saver\ProductModelSaver($a, $b);
    }
}
