public function run() { $request = \Yii::$app->request; $grantType = GrantTypeAbstract::createGrantType(['accessTokenLifetime' => $this->accessTokenLifetime, 'refreshTokenLifetime' => $this->refreshTokenLifetime]); $grantType->validate(); \Yii::$app->response->data = $grantType->getResponseData(); }