var/cache/dev/Container00WRMeY/getApiPlatform_Listener_View_Write_LegacyService.php line 18

Open in your IDE?
  1. <?php
  2. namespace Container00WRMeY;
  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_Listener_View_Write_LegacyService extends App_KernelDevDebugContainer
  9. {
  10.     /**
  11.      * Gets the private 'api_platform.listener.view.write.legacy' shared service.
  12.      *
  13.      * @return \ApiPlatform\Core\EventListener\WriteListener
  14.      */
  15.     public static function do($container$lazyLoad true)
  16.     {
  17.         include_once \dirname(__DIR__4).'/vendor/api-platform/core/src/Core/EventListener/WriteListener.php';
  18.         $a = ($container->privates['debug.api_platform.data_persister'] ?? $container->getDebug_ApiPlatform_DataPersisterService());
  19.         if (isset($container->privates['api_platform.listener.view.write.legacy'])) {
  20.             return $container->privates['api_platform.listener.view.write.legacy'];
  21.         }
  22.         $b = ($container->privates['api_platform.iri_converter.legacy'] ?? $container->getApiPlatform_IriConverter_LegacyService());
  23.         if (isset($container->privates['api_platform.listener.view.write.legacy'])) {
  24.             return $container->privates['api_platform.listener.view.write.legacy'];
  25.         }
  26.         return $container->privates['api_platform.listener.view.write.legacy'] = new \ApiPlatform\Core\EventListener\WriteListener($a$b, ($container->privates['api_platform.metadata.resource.metadata_factory.cached'] ?? $container->getApiPlatform_Metadata_Resource_MetadataFactory_CachedService()), ($container->privates['api_platform.resource_class_resolver'] ?? $container->getApiPlatform_ResourceClassResolverService()));
  27.     }
  28. }