Add @template annotation for yii\rest\Action (#20529)

This commit is contained in:
Maksim Spirkov
2025-09-16 22:21:17 +04:00
committed by GitHub
parent 53bdfc3b2c
commit 90c2ceb170

View File

@ -10,6 +10,7 @@ namespace yii\rest;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\db\ActiveRecordInterface; use yii\db\ActiveRecordInterface;
use yii\web\NotFoundHttpException; use yii\web\NotFoundHttpException;
use yii\base\Action as BaseAction;
/** /**
* Action is the base class for action classes that implement RESTful API. * Action is the base class for action classes that implement RESTful API.
@ -18,8 +19,11 @@ use yii\web\NotFoundHttpException;
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*
* @template T of Controller
* @extends BaseAction<T>
*/ */
class Action extends \yii\base\Action class Action extends BaseAction
{ {
/** /**
* @var string class name of the model which will be handled by this action. * @var string class name of the model which will be handled by this action.