Skip to content

docs: update vich example to use the Attribute namespace instead#2250

Merged
soyuka merged 1 commit intoapi-platform:4.2from
cngJo:patch-2
Feb 9, 2026
Merged

docs: update vich example to use the Attribute namespace instead#2250
soyuka merged 1 commit intoapi-platform:4.2from
cngJo:patch-2

Conversation

@cngJo
Copy link
Contributor

@cngJo cngJo commented Feb 9, 2026

The "old" namespace works, but is deprecated since v2 of the bundle and throws deprecation messages in the logs.

e.G. in the output of the PHPUnit tests I get when following the docs:

2) /var/www/html/vendor/vich/uploader-bundle/src/Mapping/Annotation/Uploadable.php:24
Since vich/uploader-bundle 2.9: The "Vich\UploaderBundle\Mapping\Annotation\Uploadable" class is deprecated, use "Vich\UploaderBundle\Mapping\Attribute\Uploadable" instead.

@soyuka soyuka merged commit badbbc1 into api-platform:4.2 Feb 9, 2026
3 checks passed
@soyuka
Copy link
Member

soyuka commented Feb 9, 2026

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants