@@ -642,6 +642,14 @@ public function load(array $configs, ContainerBuilder $container): void
642
642
$ loader ->load ('mime_type.php ' );
643
643
}
644
644
645
+ if (ContainerBuilder::willBeAvailable ('symfony/object-mapper ' , ObjectMapperInterface::class, ['symfony/framework-bundle ' ])) {
646
+ $ loader ->load ('object_mapper.php ' );
647
+ $ container ->registerForAutoconfiguration (TransformCallableInterface::class)
648
+ ->addTag ('object_mapper.transform_callable ' );
649
+ $ container ->registerForAutoconfiguration (ConditionCallableInterface::class)
650
+ ->addTag ('object_mapper.condition_callable ' );
651
+ }
652
+
645
653
$ container ->registerForAutoconfiguration (PackageInterface::class)
646
654
->addTag ('assets.package ' );
647
655
$ container ->registerForAutoconfiguration (AssetCompilerInterface::class)
@@ -880,14 +888,6 @@ private function registerFormConfiguration(array $config, ContainerBuilder $cont
880
888
if (!ContainerBuilder::willBeAvailable ('symfony/translation ' , Translator::class, ['symfony/framework-bundle ' , 'symfony/form ' ])) {
881
889
$ container ->removeDefinition ('form.type_extension.upload.validator ' );
882
890
}
883
-
884
- if (ContainerBuilder::willBeAvailable ('symfony/object-mapper ' , ObjectMapperInterface::class, ['symfony/framework-bundle ' ])) {
885
- $ loader ->load ('object_mapper.php ' );
886
- $ container ->registerForAutoconfiguration (TransformCallableInterface::class)
887
- ->addTag ('object_mapper.transform_callable ' );
888
- $ container ->registerForAutoconfiguration (ConditionCallableInterface::class)
889
- ->addTag ('object_mapper.condition_callable ' );
890
- }
891
891
}
892
892
893
893
private function registerHttpCacheConfiguration (array $ config , ContainerBuilder $ container , bool $ httpMethodOverride ): void
0 commit comments