Quelques astuces utiles. A ne pas suivre entièrement. RT @T1l3: Reduce the size of controllers #symfony http://t.co/KI6tYkgi #symfony2 #php
November 06, 2012
/http%3A%2F%2Frichardmiller.co.uk%2Fwp-content%2Fthemes%2Fmodern-style%2Fimages%2Ftwitter.png)
Symfony2: Trimming Fat from Controllers | Richard Miller
We can do something similar for the Product by using the ParamConverter annotation. So instead of the $id argument we have a $product type hinted as our Product entity.
http://richardmiller.co.uk/2012/10/31/symfony2-trimming-fat-from-controllers/
/image%2F0004624%2F201210%2Fob_b01b21efdb72588090d70c1e23a4f101_nicolashachet-logo.png)

