Skip to content

Instantly share code, notes, and snippets.

@GaylordP
Created February 9, 2018 13:12
Show Gist options
  • Save GaylordP/dfd885693a4c96ea81e50ff82d042fa1 to your computer and use it in GitHub Desktop.
Save GaylordP/dfd885693a4c96ea81e50ff82d042fa1 to your computer and use it in GitHub Desktop.
public function delete(Request $request, UserInterface $user, Color $color): Response
{
if (!$this->isCsrfTokenValid('delete', $request->request->get('token'))) {
return $this->render('administration/color/delete.html.twig', [
'color' => $color,
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment