Skip to content

Instantly share code, notes, and snippets.

@wowo
Created September 6, 2013 12:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wowo/6463236 to your computer and use it in GitHub Desktop.
That's why I like FOS REST in #Symfony
/**
* @View()
* @Get("/leads/{id}")
* @ParamConverter("offer", class="SomeBundle:Offer\OfferLead")
*/
public function getLeadAction(OfferLead $lead)
{
return array('lead' => $lead);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment