DEV: replace deprecated ::className() with ::class (#232)

This commit is contained in:
Tõnis Ormisson
2018-09-11 22:58:21 +03:00
committed by Lorenzo Milesi
parent 3acec76fff
commit e9bca86828
11 changed files with 17 additions and 17 deletions

View File

@ -61,7 +61,7 @@ class SecurityController extends Controller
{
return [
'access' => [
'class' => AccessControl::className(),
'class' => AccessControl::class,
'rules' => [
[
'allow' => true,
@ -76,7 +76,7 @@ class SecurityController extends Controller
],
],
'verbs' => [
'class' => VerbFilter::className(),
'class' => VerbFilter::class,
'actions' => [
'logout' => ['post'],
],
@ -91,7 +91,7 @@ class SecurityController extends Controller
{
return [
'auth' => [
'class' => AuthAction::className(),
'class' => AuthAction::class,
// if user is not logged in, will try to log him in, otherwise
// will try to connect social account to user.
'successCallback' => Yii::$app->user->isGuest