lib/Routing/Route.php
public function setAcceptableMethods(array $acceptableMethods)
    {
        $this->acceptableMethods = $acceptableMethods;

        $this->addConstraint(function (Request $request) use ($acceptableMethods) {
            return in_array($request->getMethod(), $acceptableMethods);
        });
    }
public function setAcceptableMethods(array $acceptableMethods)
    {
        $this->acceptableMethods = $acceptableMethods;

        $this->addConstraint(function (Request $request) use ($acceptableMethods) {
            return in_array($request->getMethod(), $acceptableMethods);
        });
    }
public function setAcceptableMethods ( array $ acceptableMethods ) { $ this -> acceptableMethods = $ acceptableMethods ; $ this -> addConstraint ( function ( Request $ request ) use ( $ acceptableMethods ) { return in_array ( $ request -> getMethod ( ) , $ acceptableMethods ) ; } ) ; }
Sets a list of acceptable HTTP method for this route to match.

@param array $acceptableMethods
Sets a list of acceptable HTTP method for this route to match .