dunglas / DunglasActionBundle

Symfony controllers, redesigned
https://dunglas.fr/2016/01/dunglasactionbundle-symfony-controllers-redesigned/
MIT License
256 stars 14 forks source link

[Doc] Provide best practices #76

Open backbone87 opened 7 years ago

backbone87 commented 7 years ago

Imho it would be useful, if there are best practice documentation available. When using this bundle with the API platform, some more specific examples are provided in the API platform doc. However when using this bundle in "classic" apps with server generated views and you come from "classic" Symfony controller (and extending FrameworkBundle's Controller) there is almost no usage hints/best practice available.

Some questions that immediately popped to my mind, when i first started evaluating this bundle:

ksom commented 7 years ago

+1 especially for the CommonActionTrait. I have read something in the past that some people worked on it. Actually is there a trait to include basic controller behaviors ? Like $this->render() or $this->getDoctrine() ?

Thank you!

backbone87 commented 7 years ago

btw. symfony 3.3 has built in support for very similar features provided by this bundle. you can read up in the official symfony blog about it.