Skip to content

Commit 2dc18ef

Browse files
committed
🎨 deprecate annotations
1 parent 6fb0038 commit 2dc18ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DependencyInjection/VichUploaderExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ protected function registerAnnotationStrategy(ContainerBuilder $container, array
146146
throw new MissingPackageException($msg);
147147
}
148148

149+
@trigger_error('Annotation support is deprecated since version 2.5 and will be removed in 3.0. Use attributes instead.', E_USER_DEPRECATED);
150+
149151
$container->setDefinition(
150152
'vich_uploader.metadata.reader',
151153
new Definition(AnnotationReader::class)

0 commit comments

Comments
 (0)