eZ\Bundle\EzPublishRestBundle\Features\Context\RestClient\DriverInterface::setMethod PHP 메소드

setMethod() 공개 메소드

Set request method.
public setMethod ( string $method )
$method string Can be GET, POST, PATCH, ...
    public function setMethod($method);

Usage Example

예제 #1
0
 /**
  * @When I create a :type request to :resource (url)
  */
 public function createRequest($type, $resource)
 {
     $this->restDriver->setMethod($type);
     $this->restDriver->setResource($this->changeMappedValuesOnUrl($resource));
     $this->responseObject = null;
 }