Skip to content

Commit 81c120e

Browse files
committed
Merge branch '3.3' into 3.4
* 3.3: [DI] Fix infinite loop in InlineServiceDefinitionsPass Do not cache cache attributes if `attributes` is in the context Test that it do not remove the new flashes when displaying the existing ones [HttpFoundation] AutExpireFlashBag should not clear new flashes [FrameworkBundle][Serializer] Remove YamlEncoder definition if Yaml component isn't installed [DI] Fix tracking of env vars in exceptions [Form] Don't rely on if http-foundation isn't in FileType Fix merge substitute aliases in inline mappings added ability for substitute aliases when mapping in YAML is on single line [Console] Fix global console flag when used in chain
2 parents a510355 + 72d0a04 commit 81c120e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
use Symfony\Component\WebLink\HttpHeaderSerializer;
7777
use Symfony\Component\Workflow;
7878
use Symfony\Component\Yaml\Command\LintCommand as BaseYamlLintCommand;
79+
use Symfony\Component\Yaml\Yaml;
7980

8081
/**
8182
* FrameworkExtension.
@@ -1442,6 +1443,10 @@ private function registerSerializerConfiguration(array $config, ContainerBuilder
14421443
$container->removeDefinition('serializer.normalizer.object');
14431444
}
14441445

1446+
if (!class_exists(Yaml::class)) {
1447+
$container->removeDefinition('serializer.encoder.yaml');
1448+
}
1449+
14451450
$serializerLoaders = array();
14461451
if (isset($config['enable_annotations']) && $config['enable_annotations']) {
14471452
if (!$this->annotationsConfigEnabled) {

0 commit comments

Comments
 (0)