Symfony\Component\Routing\Route::setMethods
Sets the HTTP methods (e.g. 'POST') this route is restricted to.
So an empty array means that any method is allowed. This method implements a fluent interface.
Signature
public function setMethods(string|array
$methods )
Parameters
$methods
— object- The method or an array of methods
Returns
- Route
- The current Route instance