Remove MimeMessageNormalizer if the Mime component is not installed
This commit is contained in:
parent
98802e58d3
commit
c57b879b69
@ -1505,6 +1505,10 @@ class FrameworkExtension extends Extension
|
||||
$container->removeDefinition('serializer.denormalizer.unwrapping');
|
||||
}
|
||||
|
||||
if (!class_exists(Headers::class)) {
|
||||
$container->removeDefinition('serializer.normalizer.mime_message');
|
||||
}
|
||||
|
||||
$serializerLoaders = [];
|
||||
if (isset($config['enable_annotations']) && $config['enable_annotations']) {
|
||||
if (!$this->annotationsConfigEnabled) {
|
||||
|
@ -83,7 +83,7 @@
|
||||
"symfony/messenger": "<4.4",
|
||||
"symfony/mime": "<4.4",
|
||||
"symfony/property-info": "<4.4",
|
||||
"symfony/serializer": "<4.4",
|
||||
"symfony/serializer": "<5.2",
|
||||
"symfony/stopwatch": "<4.4",
|
||||
"symfony/translation": "<5.0",
|
||||
"symfony/twig-bridge": "<4.4",
|
||||
|
Reference in New Issue
Block a user