You are here

apigee_mock_api_client.services.yml in Apigee Edge 8

tests/modules/apigee_mock_api_client/apigee_mock_api_client.services.yml

File

tests/modules/apigee_mock_api_client/apigee_mock_api_client.services.yml
View source
  1. services:
  2. apigee_mock_api_client.static_mock_storage:
  3. class: Apigee\MockClient\SimpleMockStorage
  4. apigee_mock_api_client.db_mock_storage:
  5. class: Drupal\apigee_mock_api_client\DatabaseMockStorage
  6. arguments: ['@queue.database', '@state']
  7. apigee_mock_api_client.mock_http_handler_stack:
  8. class: Drupal\apigee_mock_api_client\MockHandlerStack
  9. arguments: ['@apigee_mock_api_client.db_mock_storage', '@apigee_mock_api_client.response_factory', '@apigee_mock_api_client_twig']
  10. apigee_mock_api_client.response_factory:
  11. class: Apigee\MockClient\ResponseFactory
  12. tags:
  13. - { name: service_collector, tag: apigee_mock_api_client.generator, call: addGenerator, required: TRUE }
  14. apigee_mock_api_client.twig_generator:
  15. class: Apigee\MockClient\Generator\TwigGenerator
  16. arguments: ['@apigee_mock_api_client_twig']
  17. tags:
  18. - { name: apigee_mock_api_client.generator }
  19. apigee_mock_api_client.sdk_entity_generator:
  20. class: Apigee\MockClient\Generator\ApigeeSdkEntityGenerator
  21. tags:
  22. - { name: apigee_mock_api_client.generator }
  23. apigee_mock_api_client.mock_http_client_factory:
  24. class: Drupal\apigee_mock_api_client\MockHttpClientFactory
  25. arguments: ['@http_handler_stack', '@apigee_mock_api_client.mock_http_handler_stack', '@state']
  26. apigee_mock_api_client_twig:
  27. class: \Twig_Environment
  28. arguments: ['@apigee_mock_api_client_twig_json.loader']
  29. apigee_mock_api_client_twig_json.loader:
  30. class: \Twig_Loader_Chain
  31. public: false
  32. tags:
  33. - { name: service_collector, tag: apigee_mock_api_client_twig.loader, call: addLoader, required: TRUE }
  34. ## Adds `apigee_mock_api_client/response-templates` to the template search path ##
  35. apigee_mock_api_client_twig_json.loader.filesystem:
  36. class: Drupal\apigee_mock_api_client\TwigExtension\ResponseTemplateLoader
  37. arguments: ['@module_handler']
  38. tags:
  39. - { name: apigee_mock_api_client_twig.loader, priority: 100 }