diff --git a/src/DependencyInjection/VichUploaderExtension.php b/src/DependencyInjection/VichUploaderExtension.php index 6e7db8a3..de9e65b6 100644 --- a/src/DependencyInjection/VichUploaderExtension.php +++ b/src/DependencyInjection/VichUploaderExtension.php @@ -146,6 +146,8 @@ protected function registerAnnotationStrategy(ContainerBuilder $container, array throw new MissingPackageException($msg); } + @trigger_error('Annotation support is deprecated since version 2.5 and will be removed in 3.0. Use attributes instead.', E_USER_DEPRECATED); + $container->setDefinition( 'vich_uploader.metadata.reader', new Definition(AnnotationReader::class)