Skip to content

Commit

Permalink
Merge pull request #3 from wenbin1989/master
Browse files Browse the repository at this point in the history
get module instance via module property of Controller
  • Loading branch information
filsh committed May 30, 2014
2 parents 6f3f6ab + 04f745d commit 61bc35c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public function behaviors()

public function actionToken()
{
$server = Yii::$app->getModule('oauth2')->getServer();
$request = Yii::$app->getModule('oauth2')->getRequest();
$server = $this->module->getServer();
$request = $this->module->getRequest();
$response = $server->handleTokenRequest($request);

return $response->getParameters();
Expand Down

0 comments on commit 61bc35c

Please sign in to comment.