var/cache/dev/Container9J9tzGK/getApiPlatform_IriConverter_LegacyService.php line 22

Open in your IDE?
  1. <?php
  2. namespace Container9J9tzGK;
  3. use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
  4. use Symfony\Component\DependencyInjection\Exception\RuntimeException;
  5. /**
  6.  * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
  7.  */
  8. class getApiPlatform_IriConverter_LegacyService extends App_KernelDevDebugContainer
  9. {
  10.     /**
  11.      * Gets the private 'api_platform.iri_converter.legacy' shared service.
  12.      *
  13.      * @return \ApiPlatform\Core\Bridge\Symfony\Routing\IriConverter
  14.      *
  15.      * @deprecated Since api-platform/core 2.7: Using "api_platform.iri_converter.legacy" is deprecated since API Platform 2.7. Use "ApiPlatform\Api\IriConverterInterface" instead.
  16.      */
  17.     public static function do($container$lazyLoad true)
  18.     {
  19.         trigger_deprecation('api-platform/core''2.7''Using "api_platform.iri_converter.legacy" is deprecated since API Platform 2.7. Use "ApiPlatform\\Api\\IriConverterInterface" instead.');
  20.         include_once \dirname(__DIR__4).'/vendor/api-platform/core/src/Core/Bridge/Symfony/Routing/RouteNameResolverInterface.php';
  21.         include_once \dirname(__DIR__4).'/vendor/api-platform/core/src/Core/Bridge/Symfony/Routing/CachedRouteNameResolver.php';
  22.         include_once \dirname(__DIR__4).'/vendor/api-platform/core/src/Core/Bridge/Symfony/Routing/RouteNameResolver.php';
  23.         $a = ($container->privates['api_platform.metadata.property.name_collection_factory.cached'] ?? $container->getApiPlatform_Metadata_Property_NameCollectionFactory_CachedService());
  24.         if (isset($container->privates['api_platform.iri_converter.legacy'])) {
  25.             return $container->privates['api_platform.iri_converter.legacy'];
  26.         }
  27.         $b = ($container->privates['api_platform.metadata.property.metadata_factory.cached.legacy'] ?? $container->getApiPlatform_Metadata_Property_MetadataFactory_Cached_LegacyService());
  28.         if (isset($container->privates['api_platform.iri_converter.legacy'])) {
  29.             return $container->privates['api_platform.iri_converter.legacy'];
  30.         }
  31.         $c = ($container->privates['api_platform.item_data_provider'] ?? $container->getApiPlatform_ItemDataProviderService());
  32.         if (isset($container->privates['api_platform.iri_converter.legacy'])) {
  33.             return $container->privates['api_platform.iri_converter.legacy'];
  34.         }
  35.         $d = ($container->privates['api_platform.subresource_data_provider'] ?? $container->getApiPlatform_SubresourceDataProviderService());
  36.         if (isset($container->privates['api_platform.iri_converter.legacy'])) {
  37.             return $container->privates['api_platform.iri_converter.legacy'];
  38.         }
  39.         $e = ($container->privates['api_platform.router'] ?? $container->getApiPlatform_RouterService());
  40.         return $container->privates['api_platform.iri_converter.legacy'] = new \ApiPlatform\Core\Bridge\Symfony\Routing\IriConverter($a$b$c, new \ApiPlatform\Core\Bridge\Symfony\Routing\CachedRouteNameResolver(($container->privates['api_platform.cache.route_name_resolver'] ?? $container->getApiPlatform_Cache_RouteNameResolverService()), new \ApiPlatform\Core\Bridge\Symfony\Routing\RouteNameResolver($e)), $e, ($container->privates['property_accessor'] ?? $container->getPropertyAccessorService()), ($container->privates['api_platform.identifiers_extractor.cached'] ?? $container->getApiPlatform_IdentifiersExtractor_CachedService()), $d, ($container->privates['api_platform.identifier.converter'] ?? $container->getApiPlatform_Identifier_ConverterService()), ($container->privates['api_platform.resource_class_resolver'] ?? $container->getApiPlatform_ResourceClassResolverService()), ($container->privates['api_platform.metadata.resource.metadata_factory.cached'] ?? $container->getApiPlatform_Metadata_Resource_MetadataFactory_CachedService()));
  41.     }
  42. }