-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdrutiny.yml
38 lines (34 loc) · 1.17 KB
/
drutiny.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
parameters:
bulk.log.filepath: '%log.directory%/bulk-errors.log.json'
services:
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
public: true
Drutiny\Bulk\Commands\WorkCommand:
tags: [command]
Drutiny\Bulk\Commands\QueueCommand:
tags: [command]
Drutiny\Bulk\Commands\RunQueueServiceCommand:
tags: [command]
bulk.logger:
class: Monolog\Logger
arguments:
- 'bulk'
calls:
- [pushProcessor, ['@Monolog\Processor\PsrLogMessageProcessor']]
- [pushHandler, ['@bulk.logger.logfile']]
bulk.logger.logfile:
class: Monolog\Handler\RotatingFileHandler
calls:
- [setFormatter,['@Monolog\Formatter\JsonFormatter']]
- [setLevel, ['%log.level%']]
arguments:
- '%bulk.log.filepath%'
- '%log.max_files%'
Monolog\Formatter\JsonFormatter:
Drutiny\Bulk\QueueService\AmqpService:
Drutiny\Bulk\QueueService\AwsSqsService:
Drutiny\Bulk\QueueService\QueueServiceFactory:
Drutiny\Bulk\EventDispatcher\BulkEventSubscriber:
tags: [kernel.event_subscriber]