PHP Classes
elePHPant
Icontem

File: config/services.yml

Recommend this page to a friend!
  Classes of Sergii Pryz  >  NASA Near Earth Orbit API Client  >  config/services.yml  >  Download  
File: config/services.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: NASA Near Earth Orbit API Client
Get near Earth orbit object data with NASA API
Author: By
Last change: Removed lazy from DI over final services. Updated composer and changelog.
Date: 2 years ago
Size: 3,489 bytes
 

 

Contents

Class file image Download
imports:
  - { resource: parameters.yml }

services:
  # Model
  # =====
  neo_ws_model_object_manager:
    class: 'Picamator\NeoWsClient\Model\ObjectManager'

  # Http
  # ====
  neo_ws_http_config:
    class: 'Picamator\NeoWsClient\Http\Data\Config'
    arguments: ['%neo_ws_client.http%']

  neo_ws_http_client:
    class: 'Picamator\NeoWsClient\Http\Client'
    factory: ['Picamator\NeoWsClient\App\Di\Http\ClientFactory', 'create']
    arguments: ['@neo_ws_model_object_manager', '@neo_ws_http_config']

  # Request
  # ========
  neo_ws_request_builder_feed_request_factory:
    class: 'Picamator\NeoWsClient\Request\Builder\FeedRequestFactory'
    arguments: ['@neo_ws_model_object_manager']

  # Response
  # ========
  neo_ws_response_builder_response_factory:
    class: 'Picamator\NeoWsClient\Response\Builder\ResponseFactory'
    arguments: ['@neo_ws_model_object_manager']
    lazy:  true

  # Mapper
  # ======
  neo_ws_mapper_mapper:
    class: 'Picamator\NeoWsClient\Mapper\Mapper'
    arguments: ['@neo_ws_model_object_manager']

  neo_ws_mapper_builder_schema_collection_factory:
    class: 'Picamator\NeoWsClient\Mapper\Builder\SchemaCollectionFactory'
    arguments: ['@neo_ws_model_object_manager']
    lazy:  true

  neo_ws_mapper_repository_statistics_repository:
    class: 'Picamator\NeoWsClient\Mapper\Repository\StatisticsRepository'
    arguments: ['@neo_ws_mapper_builder_schema_collection_factory']
    lazy:  true

  neo_ws_mapper_repository_neo_repository:
    class: 'Picamator\NeoWsClient\Mapper\Repository\NeoRepository'
    arguments: ['@neo_ws_mapper_builder_schema_collection_factory']
    lazy:  true

  neo_ws_mapper_repository_neo_browse_repository:
    class: 'Picamator\NeoWsClient\Mapper\Repository\NeoBrowseRepository'
    arguments: ['@neo_ws_mapper_builder_schema_collection_factory', '@neo_ws_mapper_repository_neo_repository']
    lazy:  true

  neo_ws_mapper_repository_feed_repository:
    class: 'Picamator\NeoWsClient\Mapper\Repository\FeedRepository'
    arguments: ['@neo_ws_mapper_builder_schema_collection_factory', '@neo_ws_mapper_repository_neo_repository']
    lazy:  true

  # Manager
  # =======
  neo_ws_manager_builder_rate_limit_factory:
    class: 'Picamator\NeoWsClient\Manager\Builder\RateLimitFactory'
    arguments: ['@neo_ws_model_object_manager']
    lazy:  true

  neo_ws_manager_statistics_manager:
    class: 'Picamator\NeoWsClient\Manager\Manager'
    arguments: ['@neo_ws_http_client', '@neo_ws_manager_builder_rate_limit_factory', '@neo_ws_response_builder_response_factory', '@neo_ws_mapper_mapper', '@neo_ws_mapper_repository_statistics_repository']

  neo_ws_manager_neo_manager:
    class: 'Picamator\NeoWsClient\Manager\Manager'
    arguments: ['@neo_ws_http_client', '@neo_ws_manager_builder_rate_limit_factory', '@neo_ws_response_builder_response_factory', '@neo_ws_mapper_mapper', '@neo_ws_mapper_repository_neo_repository']

  neo_ws_manager_neo_browse_manager:
    class: 'Picamator\NeoWsClient\Manager\Manager'
    arguments: ['@neo_ws_http_client', '@neo_ws_manager_builder_rate_limit_factory', '@neo_ws_response_builder_response_factory', '@neo_ws_mapper_mapper', '@neo_ws_mapper_repository_neo_browse_repository']

  neo_ws_manager_feed_manager:
    class: 'Picamator\NeoWsClient\Manager\Manager'
    arguments: ['@neo_ws_http_client', '@neo_ws_manager_builder_rate_limit_factory', '@neo_ws_response_builder_response_factory', '@neo_ws_mapper_mapper', '@neo_ws_mapper_repository_feed_repository']