vendor/vich/uploader-bundle/src/Mapping/Annotation/Uploadable.php line 22

Open in your IDE?
  1. <?php
  2. namespace Vich\UploaderBundle\Mapping\Annotation;
  3. use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
  4. use Vich\UploaderBundle\Mapping\AnnotationInterface;
  5. /**
  6.  * Uploadable.
  7.  *
  8.  * @Annotation
  9.  * @Target({"CLASS"})
  10.  * @NamedArgumentConstructor
  11.  *
  12.  * @deprecated since 2.9, use Vich\UploaderBundle\Mapping\Attribute\Uploadable instead
  13.  *
  14.  * @author Dustin Dobervich <ddobervich@gmail.com>
  15.  */
  16. #[\Attribute(\Attribute::TARGET_CLASS)]
  17. final class Uploadable implements AnnotationInterface
  18. {
  19.     public function __construct()
  20.     {
  21.         trigger_deprecation('vich/uploader-bundle''2.9''The "Vich\UploaderBundle\Mapping\Annotation\Uploadable" class is deprecated, use "Vich\UploaderBundle\Mapping\Attribute\Uploadable" instead.');
  22.     }
  23. }