var/cache/dev/front/Container7xfhpU2/getFosRest_Exception_TwigControllerService.php line 9

Open in your IDE?
  1. <?php
  2. use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
  3. use Symfony\Component\DependencyInjection\Exception\RuntimeException;
  4. // This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
  5. // Returns the public 'fos_rest.exception.twig_controller' shared service.
  6. @trigger_error('The "fos_rest.exception.twig_controller" service is deprecated since FOSRestBundle 2.8.'E_USER_DEPRECATED);
  7. include_once \dirname(__DIR__5).'/vendor/friendsofsymfony/rest-bundle/Util/ExceptionValueMap.php';
  8. $a = new \Twig\Environment(($this->privates['twig.loader.native_filesystem'] ?? $this->getTwig_Loader_NativeFilesystemService()), ['debug' => true'strict_variables' => true'autoescape' => 'name''cache' => ($this->targetDir.''.'/twig'), 'charset' => 'UTF-8']);
  9. $a->addExtension(($this->privates['twig.extension.security_csrf'] ?? ($this->privates['twig.extension.security_csrf'] = new \Symfony\Bridge\Twig\Extension\CsrfExtension())));
  10. $a->addExtension(($this->privates['twig.extension.logout_url'] ?? $this->getTwig_Extension_LogoutUrlService()));
  11. $a->addExtension(($this->privates['twig.extension.security'] ?? $this->getTwig_Extension_SecurityService()));
  12. $a->addExtension(($this->privates['twig.extension.profiler'] ?? $this->getTwig_Extension_ProfilerService()));
  13. $a->addExtension(($this->privates['twig.extension.trans'] ?? $this->getTwig_Extension_TransService()));
  14. $a->addExtension(($this->privates['twig.extension.assets'] ?? $this->getTwig_Extension_AssetsService()));
  15. $a->addExtension(($this->privates['twig.extension.code'] ?? $this->getTwig_Extension_CodeService()));
  16. $a->addExtension(($this->privates['twig.extension.routing'] ?? $this->getTwig_Extension_RoutingService()));
  17. $a->addExtension(($this->privates['twig.extension.yaml'] ?? ($this->privates['twig.extension.yaml'] = new \Symfony\Bridge\Twig\Extension\YamlExtension())));
  18. $a->addExtension(($this->privates['twig.extension.debug.stopwatch'] ?? $this->getTwig_Extension_Debug_StopwatchService()));
  19. $a->addExtension(($this->privates['twig.extension.expression'] ?? ($this->privates['twig.extension.expression'] = new \Symfony\Bridge\Twig\Extension\ExpressionExtension())));
  20. $a->addExtension(($this->privates['twig.extension.httpkernel'] ?? ($this->privates['twig.extension.httpkernel'] = new \Symfony\Bridge\Twig\Extension\HttpKernelExtension())));
  21. $a->addExtension(($this->privates['twig.extension.httpfoundation'] ?? $this->getTwig_Extension_HttpfoundationService()));
  22. $a->addExtension(($this->privates['twig.extension.weblink'] ?? $this->getTwig_Extension_WeblinkService()));
  23. $a->addExtension(($this->privates['twig.extension.form'] ?? ($this->privates['twig.extension.form'] = new \Symfony\Bridge\Twig\Extension\FormExtension())));
  24. $a->addExtension(($this->privates['twig.extension.dump'] ?? $this->getTwig_Extension_DumpService()));
  25. $a->addExtension(($this->privates['Twig\\Extensions\\IntlExtension'] ?? ($this->privates['Twig\\Extensions\\IntlExtension'] = new \Twig\Extensions\IntlExtension())));
  26. $a->addExtension(($this->privates['doctrine.twig.doctrine_extension'] ?? ($this->privates['doctrine.twig.doctrine_extension'] = new \Doctrine\Bundle\DoctrineBundle\Twig\DoctrineExtension())));
  27. $a->addExtension(($this->privates['twig.extension.webprofiler'] ?? $this->getTwig_Extension_WebprofilerService()));
  28. $a->addExtension(($this->privates['easyadmin.twig.extension'] ?? $this->getEasyadmin_Twig_ExtensionService()));
  29. $a->addExtension(($this->privates['fos_ck_editor.twig_extension'] ?? $this->getFosCkEditor_TwigExtensionService()));
  30. $a->addExtension(($this->privates['jms_serializer.twig_extension.serializer'] ?? ($this->privates['jms_serializer.twig_extension.serializer'] = new \JMS\Serializer\Twig\SerializerRuntimeExtension())));
  31. $a->addExtension(($this->privates['twig.extension.craue_config_template'] ?? $this->getTwig_Extension_CraueConfigTemplateService()));
  32. $a->addExtension(($this->privates['eight_points_guzzle.twig_extension.debug'] ?? ($this->privates['eight_points_guzzle.twig_extension.debug'] = new \EightPoints\Bundle\GuzzleBundle\Twig\Extension\DebugExtension())));
  33. $a->addGlobal('app', ($this->privates['twig.app_variable'] ?? $this->getTwig_AppVariableService()));
  34. $a->addRuntimeLoader(($this->privates['twig.runtime_loader'] ?? $this->getTwig_RuntimeLoaderService()));
  35. $a->addGlobal('coins_manager', ($this->privates['App\\Service\\CoinsManager'] ?? $this->getCoinsManagerService()));
  36. ($this->privates['twig.configurator.environment'] ?? $this->getTwig_Configurator_EnvironmentService())->configure($a);
  37. return $this->services['fos_rest.exception.twig_controller'] = new \FOS\RestBundle\Controller\TwigExceptionController(($this->services['fos_rest.view_handler'] ?? $this->load('getFosRest_ViewHandlerService.php')), ($this->privates['fos_rest.exception.codes_map'] ?? ($this->privates['fos_rest.exception.codes_map'] = new \FOS\RestBundle\Util\ExceptionValueMap(['App\\Exception\\ResourceNotFoundException' => 404'App\\Exception\\BadRequestException' => 400'App\\Exception\\ServiceUnavailableException' => 503]))), true$a);