163
163
use Symfony \Component \Notifier \Recipient \Recipient ;
164
164
use Symfony \Component \Notifier \Transport \TransportFactoryInterface as NotifierTransportFactoryInterface ;
165
165
use Symfony \Component \PropertyAccess \PropertyAccessor ;
166
+ use Symfony \Component \PropertyInfo \Extractor \PhpDocExtractor ;
166
167
use Symfony \Component \PropertyInfo \Extractor \PhpStanExtractor ;
167
168
use Symfony \Component \PropertyInfo \PropertyAccessExtractorInterface ;
168
169
use Symfony \Component \PropertyInfo \PropertyDescriptionExtractorInterface ;
182
183
use Symfony \Component \Security \Csrf \CsrfTokenManagerInterface ;
183
184
use Symfony \Component \Serializer \Encoder \DecoderInterface ;
184
185
use Symfony \Component \Serializer \Encoder \EncoderInterface ;
186
+ use Symfony \Component \Serializer \Mapping \Loader \AnnotationLoader ;
187
+ use Symfony \Component \Serializer \Mapping \Loader \XmlFileLoader ;
188
+ use Symfony \Component \Serializer \Mapping \Loader \YamlFileLoader ;
185
189
use Symfony \Component \Serializer \Normalizer \DenormalizerInterface ;
186
190
use Symfony \Component \Serializer \Normalizer \NormalizerInterface ;
187
191
use Symfony \Component \Serializer \Normalizer \UnwrappingDenormalizer ;
@@ -510,7 +514,7 @@ public function load(array $configs, ContainerBuilder $container)
510
514
'** \\Entity \\' ,
511
515
512
516
// Added explicitly so that we don't rely on the class map being dumped to make it work
513
- ' Symfony \\ Bundle \\ FrameworkBundle \\ Controller \\ AbstractController ' ,
517
+ AbstractController::class ,
514
518
]);
515
519
516
520
if (ContainerBuilder::willBeAvailable ('symfony/mime ' , MimeTypes::class, ['symfony/framework-bundle ' ])) {
@@ -1731,7 +1735,7 @@ private function registerSerializerConfiguration(array $config, ContainerBuilder
1731
1735
$ serializerLoaders = [];
1732
1736
if (isset ($ config ['enable_annotations ' ]) && $ config ['enable_annotations ' ]) {
1733
1737
$ annotationLoader = new Definition (
1734
- ' Symfony\Component\Serializer\Mapping\Loader\ AnnotationLoader' ,
1738
+ AnnotationLoader::class ,
1735
1739
[new Reference ('annotation_reader ' , ContainerInterface::NULL_ON_INVALID_REFERENCE )]
1736
1740
);
1737
1741
$ annotationLoader ->setPublic (false );
@@ -1740,7 +1744,7 @@ private function registerSerializerConfiguration(array $config, ContainerBuilder
1740
1744
}
1741
1745
1742
1746
$ fileRecorder = function ($ extension , $ path ) use (&$ serializerLoaders ) {
1743
- $ definition = new Definition (\in_array ($ extension , ['yaml ' , 'yml ' ]) ? ' Symfony\Component\Serializer\Mapping\Loader\ YamlFileLoader' : ' Symfony\Component\Serializer\Mapping\Loader\ XmlFileLoader' , [$ path ]);
1747
+ $ definition = new Definition (\in_array ($ extension , ['yaml ' , 'yml ' ]) ? YamlFileLoader::class : XmlFileLoader::class , [$ path ]);
1744
1748
$ definition ->setPublic (false );
1745
1749
$ serializerLoaders [] = $ definition ;
1746
1750
};
@@ -1813,7 +1817,7 @@ private function registerPropertyInfoConfiguration(ContainerBuilder $container,
1813
1817
}
1814
1818
1815
1819
if (ContainerBuilder::willBeAvailable ('phpdocumentor/reflection-docblock ' , DocBlockFactoryInterface::class, ['symfony/framework-bundle ' , 'symfony/property-info ' ], true )) {
1816
- $ definition = $ container ->register ('property_info.php_doc_extractor ' , ' Symfony\Component\PropertyInfo\Extractor\ PhpDocExtractor' );
1820
+ $ definition = $ container ->register ('property_info.php_doc_extractor ' , PhpDocExtractor::class );
1817
1821
$ definition ->addTag ('property_info.description_extractor ' , ['priority ' => -1000 ]);
1818
1822
$ definition ->addTag ('property_info.type_extractor ' , ['priority ' => -1001 ]);
1819
1823
}
0 commit comments