From 2dc18efc3026bb1c3ae10e37eaff7888d36bf01a Mon Sep 17 00:00:00 2001 From: Massimiliano Arione Date: Sun, 8 Dec 2024 16:46:28 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20deprecate=20annotations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DependencyInjection/VichUploaderExtension.php | 2 ++ 1 file changed, 2 insertions(+) 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)