mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-30 01:56:35 +08:00
Add @template annotation for yii\rest\Action (#20529)
This commit is contained in:
@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user