Beispiel #1
0
 /**
  * Create new JsonRequest.
  *
  * @param string $method
  * @param array  $params
  * @param string $id
  */
 public function __construct($method, array $params = [], $id = null)
 {
     $this->method = $method;
     $this->params = $params;
     $this->id = $id;
     parent::__construct();
 }
Beispiel #2
0
 /**
  * Create new JsonResponse.
  *
  * @param JsonRequest $jsonRequest
  */
 public function __construct(JsonRequest $jsonRequest = null)
 {
     if ($jsonRequest) {
         $this->setRequest($jsonRequest);
     }
     parent::__construct();
 }