Symfony\Component\Routing\RouteCollection::setMethods
Sets the HTTP methods (e.g. 'POST') all child routes are restricted to.
Signature
public function setMethods(string|array
$methods )
Parameters
$methods
— object- The method or an array of methods