getCreatedResponse() публичный Метод

Get response for newly created resource with HTTP code 201 (adds 'location' header).
public getCreatedResponse ( object $resource, array | null $links = null, mixed $meta = null, array $headers = [] ) : mixed
$resource object
$links array | null
$meta mixed
$headers array
Результат mixed
Пример #1
0
 /**
  * @inheritdoc
  */
 public function created($resource, array $links = [], $meta = null, array $headers = [])
 {
     return $this->responses->getCreatedResponse($resource, $links, $meta, $headers);
 }