Skip to content

Tag: symfony

Entity not visible in swagger UI api platform

I use Api Platform & Symfony (5.4) + php 7.2.5 I created an Entity by myself, I just added one file in /src/Entity and it’s not working. I refresh, I cleared cache, I adde @ApiResource… But the Entity is not visible in the doc page in API Platform. Have you an idea where the error is ? Thanks …

add additional header to symfony mailer message

I don’t use the Symfony Framework. When I add my header like then a $mailer->send($mail); doesn’t work anymore:-( How do I send mail? Answer getHeaders functions return an header, so in your $mail, you dont have an email but a Header

VichUploaderBundle in Symfony 6

I hope you can help me because i’m searching and i’m lost 🙁 I’m trying to upload image in my symfony 6 project with VichUploaderBundle. I used the doc : https://github.com/dustin10/VichUploaderBundle/blob/master/docs/usage.md#step-1-configure-an-upload-mapping But i have this error : The cla…