Skip to content

Commit 4f1c098

Browse files
authored
Merge pull request #1483 from garak/deprecate-annotations
🎨 deprecate annotations
2 parents 6fb0038 + 2dc18ef commit 4f1c098

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)