mirror of
https://github.com/elyby/accounts.git
synced 2026-10-20 12:48:07 +05:30
Upgrade PHP to 7.3 and fix some related code errors. Disable self_accessor fixer for PHP-CS-Fixer
This commit is contained in:
1 parent
07546bc7e9
commit
e13b6f0d94
10 files changed
+38
-219
No files matched your search
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace api\components\User;
|
||||
|
||||
use common\models\Account;
|
||||
@@ -12,7 +14,7 @@ interface IdentityInterface extends \yii\web\IdentityInterface {
|
||||
* @throws \yii\web\UnauthorizedHttpException
|
||||
* @return IdentityInterface
|
||||
*/
|
||||
public static function findIdentityByAccessToken($token, $type = null): self;
|
||||
public static function findIdentityByAccessToken($token, $type = null): IdentityInterface;
|
||||
|
||||
/**
|
||||
* Этот метод используется для получения токена, к которому привязаны права.
|
||||
|
||||
@@ -1,16 +1,9 @@
|
||||
<?php
|
||||
return [
|
||||
'bootstrap' => ['debug'],
|
||||
'components' => [
|
||||
'reCaptcha' => [
|
||||
'public' => '6LfwqCYTAAAAAJlaJpqCdzESCjAXUC81Ca6jBHR7',
|
||||
'secret' => '6LfwqCYTAAAAAFPjHmgwmnjSMFeAOJh7Lk5xxDMC',
|
||||
],
|
||||
],
|
||||
'modules' => [
|
||||
'debug' => [
|
||||
'class' => yii\debug\Module::class,
|
||||
'allowedIPs' => ['*'],
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
return [
|
||||
'components' => [
|
||||
'reCaptcha' => [
|
||||
'public' => getenv('RECAPTCHA_PUBLIC'),
|
||||
'secret' => getenv('RECAPTCHA_SECRET'),
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -67,6 +67,8 @@ return [
|
||||
],
|
||||
'reCaptcha' => [
|
||||
'class' => api\components\ReCaptcha\Component::class,
|
||||
'public' => getenv('RECAPTCHA_PUBLIC'),
|
||||
'secret' => getenv('RECAPTCHA_SECRET'),
|
||||
],
|
||||
'response' => [
|
||||
'format' => yii\web\Response::FORMAT_JSON,
|
||||
|
||||
Reference in new issue
Block a user