Skip to content

Commit

Permalink
[chore]Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
lichunqiang committed Apr 18, 2017
1 parent 138e495 commit 3083710
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SwaggerAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

namespace light\swagger;

use Yii;
use yii\base\Action;
use yii\web\Response;

/**
* The document display action.
Expand Down Expand Up @@ -41,7 +43,7 @@ class SwaggerAction extends Action

public function run()
{
\Yii::$app->response->format = \yii\web\Response::FORMAT_HTML;
Yii::$app->getResponse()->format = Response::FORMAT_HTML;

$this->controller->layout = false;

Expand Down

0 comments on commit 3083710

Please sign in to comment.