mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Remove deprecated method className()
for branch 2.2
. (#19894)
This commit is contained in:
@ -49,21 +49,21 @@ class Controller extends \yii\web\Controller
|
||||
{
|
||||
return [
|
||||
'contentNegotiator' => [
|
||||
'class' => ContentNegotiator::className(),
|
||||
'class' => ContentNegotiator::class,
|
||||
'formats' => [
|
||||
'application/json' => Response::FORMAT_JSON,
|
||||
'application/xml' => Response::FORMAT_XML,
|
||||
],
|
||||
],
|
||||
'verbFilter' => [
|
||||
'class' => VerbFilter::className(),
|
||||
'class' => VerbFilter::class,
|
||||
'actions' => $this->verbs(),
|
||||
],
|
||||
'authenticator' => [
|
||||
'class' => CompositeAuth::className(),
|
||||
'class' => CompositeAuth::class,
|
||||
],
|
||||
'rateLimiter' => [
|
||||
'class' => RateLimiter::className(),
|
||||
'class' => RateLimiter::class,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user