File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/DependencyInjection/Compiler Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class ConfigParserPass implements CompilerPassInterface
52
52
'attribute ' => AttributeParser::class,
53
53
];
54
54
55
- private static array $ defaultDefaultConfig = [
55
+ private const DEFAULT_CONFIG = [
56
56
'definitions ' => [
57
57
'mappings ' => [
58
58
'auto_discover ' => [
@@ -65,6 +65,12 @@ class ConfigParserPass implements CompilerPassInterface
65
65
],
66
66
];
67
67
68
+ /**
69
+ * @deprecated Use {@see ConfigParserPass::PARSERS }. Added for the backward compatibility.
70
+ * @var array<string,array<string,mixed>>
71
+ */
72
+ private static array $ defaultDefaultConfig = self ::DEFAULT_CONFIG ;
73
+
68
74
private array $ treatedFiles = [];
69
75
private array $ preTreatedFiles = [];
70
76
@@ -170,7 +176,7 @@ private function checkTypesDuplication(array $typeConfigs): void
170
176
private function mappingConfig (array $ config , ContainerBuilder $ container ): array
171
177
{
172
178
// use default value if needed
173
- $ config = array_replace_recursive (self ::$ defaultDefaultConfig , $ config );
179
+ $ config = array_replace_recursive (self ::DEFAULT_CONFIG , $ config );
174
180
175
181
$ mappingConfig = $ config ['definitions ' ]['mappings ' ];
176
182
$ typesMappings = $ mappingConfig ['types ' ];
You can’t perform that action at this time.
0 commit comments