-
Notifications
You must be signed in to change notification settings - Fork 3
/
services.yml
91 lines (77 loc) · 3.23 KB
/
services.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
services:
_defaults:
autowire: true
Webgriffe\Esb\Service\:
resource: 'src/Service/*'
Webgriffe\Esb\FlowManager:
public: true
Amp\Beanstalk\BeanstalkClient:
arguments: [ '%beanstalkd%' ]
shared: false
Webgriffe\Esb\Service\HttpProducersServer:
arguments:
$port: '%http_server_port%'
$logger: '@Psr\Log\LoggerInterface'
$maxBodySize: '%env(default::int:ESB_HTTP_SERVER_MAX_BODY_SIZE)%'
Monolog\Handler\StreamHandler:
class: \Monolog\Handler\StreamHandler
arguments: [ 'php://stdout', !php/const Monolog\Logger::DEBUG ]
Monolog\Handler\ErrorLogHandler:
class: \Monolog\Handler\ErrorLogHandler
arguments: [ !php/const Monolog\Handler\ErrorLogHandler::OPERATING_SYSTEM, !php/const Monolog\Logger::ERROR ]
Monolog\Formatter\HtmlFormatter: {}
Monolog\Handler\NativeMailerHandler:
class: \Monolog\Handler\NativeMailerHandler
arguments: [ '%logger_mail_to%', 'Significant event from ESB', '%logger_mail_from%', !php/const Monolog\Logger::WARNING ]
calls:
- method: setFormatter
arguments:
- '@Monolog\Formatter\HtmlFormatter'
- method: setContentType
arguments:
- 'text/html'
Psr\Log\LoggerInterface:
class: \Monolog\Logger
arguments: [ 'esb', ['@Monolog\Handler\StreamHandler', '@Monolog\Handler\ErrorLogHandler', '@Monolog\Handler\NativeMailerHandler'] ]
public: true
Webgriffe\Esb\DateTimeBuilderInterface:
class: \Webgriffe\Esb\DateTimeBuilder
Webgriffe\AmpElasticsearch\Client:
arguments:
$baseUri: '%elasticsearch_base_uri%'
annotation_reader:
class: \Doctrine\Common\Annotations\AnnotationReader
serializer.json_encoder:
class: \Symfony\Component\Serializer\Encoder\JsonEncoder
serializer.object_normalizer.reflection_extractor:
class: \Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor
serializer.date_time_normalizer:
class: \Symfony\Component\Serializer\Normalizer\DateTimeNormalizer
serializer.array_denormalizer:
class: \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer
serializer.class_metadata_factory.annotation_loader:
class: \Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader
arguments:
- '@annotation_reader'
serializer.class_metadata_factory:
class: \Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory
arguments:
- '@serializer.class_metadata_factory.annotation_loader'
serializer.object_normalizer:
class: \Symfony\Component\Serializer\Normalizer\ObjectNormalizer
arguments:
$classMetadataFactory: '@serializer.class_metadata_factory'
$propertyTypeExtractor: '@serializer.object_normalizer.reflection_extractor'
serializer:
public: true
class: \Symfony\Component\Serializer\Serializer
arguments:
- ['@serializer.array_denormalizer', '@serializer.date_time_normalizer', '@serializer.object_normalizer']
- ['@serializer.json_encoder']
Symfony\Component\Serializer\SerializerInterface: '@serializer'
Symfony\Component\Serializer\Normalizer\NormalizerInterface: '@serializer'
Symfony\Component\Serializer\Normalizer\DenormalizerInterface: '@serializer'
Webgriffe\Esb\Service\ElasticSearch:
public: true
arguments:
$normalizer: '@serializer'