<?php
namespace ContainerVJPm9f3;
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 getApiPlatform_Doctrine_Orm_Default_ItemDataProviderService extends App_KernelDevDebugContainer
{
/**
* Gets the private 'api_platform.doctrine.orm.default.item_data_provider' shared service.
*
* @return \ApiPlatform\Core\Bridge\Doctrine\Orm\ItemDataProvider
*/
public static function do($container, $lazyLoad = true)
{
include_once \dirname(__DIR__, 4).'/vendor/api-platform/core/src/Core/DataProvider/DenormalizedIdentifiersAwareItemDataProviderInterface.php';
include_once \dirname(__DIR__, 4).'/vendor/api-platform/core/src/Core/Bridge/Doctrine/Common/Util/IdentifierManagerTrait.php';
include_once \dirname(__DIR__, 4).'/vendor/api-platform/core/src/Core/Bridge/Doctrine/Orm/ItemDataProvider.php';
$a = ($container->privates['api_platform.metadata.property.name_collection_factory.cached'] ?? $container->getApiPlatform_Metadata_Property_NameCollectionFactory_CachedService());
if (isset($container->privates['api_platform.doctrine.orm.default.item_data_provider'])) {
return $container->privates['api_platform.doctrine.orm.default.item_data_provider'];
}
$b = ($container->privates['api_platform.metadata.property.metadata_factory.cached.legacy'] ?? $container->getApiPlatform_Metadata_Property_MetadataFactory_Cached_LegacyService());
if (isset($container->privates['api_platform.doctrine.orm.default.item_data_provider'])) {
return $container->privates['api_platform.doctrine.orm.default.item_data_provider'];
}
return $container->privates['api_platform.doctrine.orm.default.item_data_provider'] = new \ApiPlatform\Core\Bridge\Doctrine\Orm\ItemDataProvider(($container->services['doctrine'] ?? $container->getDoctrineService()), $a, $b, new RewindableGenerator(function () use ($container) {
yield 0 => ($container->privates['App\\Extensions\\OwnedByOrganizationExtension'] ?? $container->load('getOwnedByOrganizationExtensionService'));
yield 1 => ($container->privates['App\\Extensions\\OwnedByUserExtension'] ?? $container->load('getOwnedByUserExtensionService'));
yield 2 => ($container->privates['api_platform.doctrine.orm.query_extension.eager_loading'] ?? $container->load('getApiPlatform_Doctrine_Orm_QueryExtension_EagerLoadingService'));
}, 3), NULL);
}
}