Skip to content

Commit

Permalink
🎨 deprecate annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Dec 8, 2024
1 parent 6fb0038 commit 2dc18ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DependencyInjection/VichUploaderExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2dc18ef

Please sign in to comment.