Skip to content

Commit

Permalink
Merge pull request #9 from perfectio/patch-2
Browse files Browse the repository at this point in the history
Update Action.php
  • Loading branch information
nizsheanez authored Jun 12, 2018
2 parents 1dd2149 + 04c7e4e commit bb898ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public function run()
$this->exception = new Exception($e->getMessage(), Exception::INTERNAL_ERROR);
}
Yii::endProfile('service.request');

Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;

return $this->toJson();
}

Expand Down

0 comments on commit bb898ea

Please sign in to comment.