Create a Microservice with Symfony 6 Part 5: Symfony Serializer

preview_player
Показать описание
ℹ This is a series on building a Microservice with Symfony Framework (version 6). In part 5 we'll create our own custom serializer service in order to make serialization behave the way we want it to.

💻Source code here:

💻Integrating app source code here:

👇Follow me on Social Media:

💕Show support:
Рекомендации по теме
Комментарии
Автор

This is the most clean, proper, well explained tutorial about symfony microservices. You deserve millions of followers...

tomatomov
Автор

You derserve a way more follower...I love your Videos, super explanations, best practise, real world

XtraXL
Автор

thank you so much for your work!! I've never seen such an awesome free tutorials . Keep going )

yuejmxw
Автор

thanks yet again for the content.
You are starting to change my way of thinking about coding.
Normally I would always hang my self when starting a project beginning at the database and thinking "what data am I going to need, how is it named in the DB" (you can tell I don't usually work a lot of setting up Databases for projects :P )

You already converted me into thinking what data I want and just throw it in a function and return it so I have the data I need to work with and build my application based on that.
Tweak the data where needed and eventually when the application is nearing its front end completion, I start thinking about the database.

Thanks for that ^_^
It is helping a lot.

Controvi
Автор

That's a nice way to use custom serializer. I needed exactly this. Thanks

bikalbasnet
Автор

I can only echo what the other comments have mentioned - you have a top notch delivery method of explaining. I'm really enjoying listening and learning. The pace and quantity of information is perfect

Absolute kudos to you

ste
Автор

Use JMSSerializerBundle - it's very easy to config there camel/snake case.

dawids
Автор

9:55 Would it be better to keep the `JsonResponse` so that the correct content type headers are set on the response? I think that once it's changed to `Response`, it'll be text/html rather than application/json.

opdavies
Автор

Hi gary, thanks for the tuto.

I don't think its the best way to go about it, because there's no dependency injection, probably you should use a service declaration in service.yaml if you can't take advantage of Symfony autowiring.

Or you can just configure the Symfony default serializer.

ramo
Автор

quick question:
Why not use json_encode function?

RGEFORME