/** * Выставление заголовка принятия ответа в формате Json * @return $this */ public function asJson() { $this->request->sendsJson(); return $this; }