# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
container.dumper.inline_factories: true
elastic:
hosts:
- '%env(ELASTIC_HOST)%'
env(ELASTIC_HOST): 'elasticsearch:9200'
services:
_defaults:
autowire: true
autoconfigure: true
public: false
bind:
$elasticConfig: '%elastic%'
$queryBus: '@messenger.bus.query'
$commandBus: '@messenger.bus.command'
$eventBus: '@broadway.event_handling.event_bus'
$eventProducer: '@old_sound_rabbit_mq.events_producer'
_instanceof:
App\Core\Application\Command\CommandHandlerInterface:
public: true
tags:
- { name: messenger.message_handler, bus: messenger.bus.command }
App\Core\Application\Query\QueryHandlerInterface:
public: true
tags:
- { name: messenger.message_handler, bus: messenger.bus.query }
Broadway\EventHandling\EventListener:
public: true
tags:
- { name: broadway.domain.event_listener }
cache.doctrine.redis:
class: '%snc_redis.doctrine_cache_phpredis.class%'
arguments:
- '@snc_redis.default'
cache.session.redis:
class: Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler
arguments:
['@snc_redis.default']
App\:
resource: '../src/**/*'
exclude: '../src/Migrations'
|