Skip to content

Instantly share code, notes, and snippets.

@lahaxearnaud
Created November 6, 2018 06:49
Show Gist options
  • Save lahaxearnaud/1db75dda7bc75800415c5766c9b5cc1b to your computer and use it in GitHub Desktop.
Save lahaxearnaud/1db75dda7bc75800415c5766c9b5cc1b to your computer and use it in GitHub Desktop.
/**
* @Route("/cocktail/recette/{name}-{id}", name="cocktail_detail", requirements={"id"="\d+", "name"="[0-9a-z-]+"})
* @Cache(public=true, maxage=86400, mustRevalidate=false, maxStale=86400)
**/
public function index($name, $id)
{
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment