Merge remote-tracking branch 'upstream/master' into dev-ctrlr-modules

# Conflicts:
#	CHANGELOG.md
This commit is contained in:
Tõnis Ormisson
2018-09-15 10:18:50 +03:00
17 changed files with 45 additions and 26 deletions

View File

@ -64,7 +64,7 @@ class SecurityController extends Controller
{
return [
'access' => [
'class' => AccessControl::className(),
'class' => AccessControl::class,
'rules' => [
[
'allow' => true,
@ -79,7 +79,7 @@ class SecurityController extends Controller
],
],
'verbs' => [
'class' => VerbFilter::className(),
'class' => VerbFilter::class,
'actions' => [
'logout' => ['post'],
],
@ -94,7 +94,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