You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2018. It is now read-only.
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:
What do i use insteadof Controller::render? Should i use template annotations (Symfony best practice does not recommend it)?
Obviously where Controller just proxied a service method, you can now easily use autowired service injection and use the service directly, but what about the Controller methods that did more than just proxy (like render from above, forward, denyAccessUnlessGranted and all the others)?
Should i use/create an AbstractAction/CommonActionTrait which provides common action tasks?
How would an AbstractAction/CommonActionTrait be wired? Manually or auto? Setter or contructor (or getter)?
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:
Controller::render? Should i use template annotations (Symfony best practice does not recommend it)?Controllerjust proxied a service method, you can now easily use autowired service injection and use the service directly, but what about theControllermethods that did more than just proxy (likerenderfrom above,forward,denyAccessUnlessGrantedand all the others)?AbstractAction/CommonActionTraitwhich provides common action tasks?AbstractAction/CommonActionTraitbe wired? Manually or auto? Setter or contructor (or getter)?