I have a route with this route
/**
* @Method({"DELETE"})
* @Route("/secure/users")
*/
When I try to do a cUrl
<html>
<head>
<meta charset="UTF-8" />
<title>An Error Occurred: Method Not Allowed</title>
</head>
<body>
<h1>Oops! An Error Occurred</h1>
<h2>The server returned a "405 Method Not Allowed".</h2>
<div>
Something is broken. Please let us know what you were doing when this error occurred.
We will fix it as soon as possible. Sorry for any inconvenience caused.
</div>
</body>
</html>
I tried to enable also
Request::enableHttpMethodParameterOverride();
in app.dev and app_dev.php, infact I can handle the PUT
requests.