You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

services.yaml 1.8 KiB

4 years ago
4 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # This file is the entry point to configure your own services.
  2. # Files in the packages/ subdirectory configure your dependencies.
  3. # Put parameters here that don't need to change on each machine where the app is deployed
  4. # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  5. parameters:
  6. services:
  7. # default configuration for services in *this* file
  8. _defaults:
  9. autowire: true # Automatically injects dependencies in your services.
  10. autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
  11. _instanceof:
  12. App\Exchanges\ExchangeInterface:
  13. tags:
  14. - { name: 'arbitry.exchange'}
  15. # makes classes in src/ available to be used as services
  16. # this creates a service per class whose id is the fully-qualified class name
  17. App\:
  18. resource: '../src/*'
  19. exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
  20. # controllers are imported separately to make sure services can be injected
  21. # as action arguments even if you don't extend any base controller class
  22. App\Controller\:
  23. resource: '../src/Controller'
  24. tags: ['controller.service_arguments']
  25. App\Exchanges\Kuna\KunaSigner:
  26. bind:
  27. $publicKey: 'test'
  28. $privateKey: 'test'
  29. Http\Client\HttpClient:
  30. class: Nyholm\HttpClient\Client
  31. MongoDB\Client:
  32. factory: ['App\Infrastructure\MongoClientFactory', 'create']
  33. arguments:
  34. - '%env(resolve:DATABASE_URL)%'
  35. App\Infrastructure\Arbitration\Inner\ChainProvider: ~
  36. App\Arbitration\Inner\ChainProviderInterface: '@App\Infrastructure\Arbitration\Inner\ChainProvider'
  37. App\Exchanges\ExchangeProvider:
  38. arguments:
  39. - !tagged arbitry.exchange