Добавлен файл для автокомплита в проекте, обновлены обращения к di для лучшего статического анализа

This commit is contained in:
ErickSkrauch
2016-07-17 19:13:40 +03:00
parent dd0c4fcc9e
commit 2063d7daa0
7 changed files with 51 additions and 11 deletions

View File

@ -48,9 +48,7 @@ class OauthController extends Controller {
* @return \League\OAuth2\Server\AuthorizationServer
*/
protected function getServer() {
/** @var \common\components\oauth\Component $oauth */
$oauth = Yii::$app->get('oauth');
return $oauth->authServer;
return Yii::$app->oauth->authServer;
}
/**