Skip to content

Commit

Permalink
Merge pull request #1483 from garak/deprecate-annotations
Browse files Browse the repository at this point in the history
🎨 deprecate annotations
  • Loading branch information
garak authored Dec 9, 2024
2 parents 6fb0038 + 2dc18ef commit 4f1c098
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 4f1c098

Please sign in to comment.