SyliusMailerBundle icon indicating copy to clipboard operation
SyliusMailerBundle copied to clipboard

Debug Sylius Mailer command

Open Zales0123 opened this issue 2 years ago • 0 comments

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets
License MIT

I was playing with SyliusMailerBundle a little bit yesterday and wanted to get information about emails that are configured. As it is a project using Sylius with some customizations, my first thought was "so what, I'm gonna browse yaml files like some kind of animal?!". My second thought was "but I can use debug:config sylius_mailer command to dump the bundle configuration which did the trick but looked rough and ugly.

So my final resolution was - what if we have a nice debug command for the configured emails? And I wrote it. There are obviously a lot of things to improve (I still don't know if dumping the email template brings any value 🤷‍♂️), but looks nicer 🚀

Let me know what you think about it 🫡

Zrzut ekranu 2023-01-18 o 23 30 41

PS. Thanks @loic425 for the inspiration with debug serializer command - I definitely belive following the "it's useful for me, maybe it's useful for others" path is a good idea 🖖

Zales0123 avatar Jan 19 '23 13:01 Zales0123