Skip to content

Commit 4de6067

Browse files
authored
Merge pull request #8 from paillechat/bugfix/fix_config_key_name
Fix `merge` collector `default_tags` config key
2 parents 39687e7 + 8ada94d commit 4de6067

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

phpunit.xml

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
bootstrap="./vendor/autoload.php">
1312

1413
<testsuites>

src/MetricBundle/DependencyInjection/DefinitionFactory/Collector.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ private static function registerMerging(ContainerBuilder $container, string $nam
7272
$definition = $container->register(self::createId($name), MergingCollector::class);
7373
$collectorNames = $config['collectors'];
7474
$refs = array_map([self::class, 'createReference'], $collectorNames);
75-
$definition->setArguments([$refs, $config['tags']]);
75+
76+
$definition->setArguments([$refs, $config['default_tags']]);
7677
}
7778

7879
private static function registerPreconfigured(ContainerBuilder $container, string $name, array $config)

tests/MetricBundle/Fixtures/config.yml

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ lamoda_metrics:
5858
- doctrine_entity_source
5959
default_tags: {collector: doctrine}
6060

61+
all:
62+
type: merge
63+
collectors:
64+
- doctrine
65+
- raw_sources
66+
6167
storages:
6268
doctrine:
6369
type: service

0 commit comments

Comments
 (0)