refactor: renamed namespace from Da\User to pcrt\User
Some checks failed
Build / build (ubuntu-latest, 7.4) (push) Has been cancelled
Build / build (ubuntu-latest, 8.0) (push) Has been cancelled
Build / build (ubuntu-latest, 8.1) (push) Has been cancelled
Build / build (ubuntu-latest, 8.2) (push) Has been cancelled
Build / build (ubuntu-latest, 8.3) (push) Has been cancelled
Build / build (ubuntu-latest, 8.4) (push) Has been cancelled
Some checks failed
Build / build (ubuntu-latest, 7.4) (push) Has been cancelled
Build / build (ubuntu-latest, 8.0) (push) Has been cancelled
Build / build (ubuntu-latest, 8.1) (push) Has been cancelled
Build / build (ubuntu-latest, 8.2) (push) Has been cancelled
Build / build (ubuntu-latest, 8.3) (push) Has been cancelled
Build / build (ubuntu-latest, 8.4) (push) Has been cancelled
All PHP namespaces and related references have been updated from Da\User to pcrt\User throughout the codebase, including composer.json autoload settings and all source files. This change standardizes the project under the new pcrt\User namespace for improved clarity and maintainability.
This commit is contained in:
@ -70,12 +70,12 @@
|
|||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Da\\User\\": "./src/User"
|
"pcrt\\User\\": "./src/User"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload-dev": {
|
"autoload-dev": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Da\\User\\": "./src/User"
|
"pcrt\\User\\": "./src/User"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
@ -97,7 +97,7 @@
|
|||||||
"dektrium/yii2-user": "*"
|
"dektrium/yii2-user": "*"
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"bootstrap": "Da\\User\\Bootstrap"
|
"bootstrap": "pcrt\\User\\Bootstrap"
|
||||||
},
|
},
|
||||||
"repositories": [
|
"repositories": [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\AuthClient;
|
namespace pcrt\User\AuthClient;
|
||||||
|
|
||||||
use Da\User\Contracts\AuthClientInterface;
|
use pcrt\User\Contracts\AuthClientInterface;
|
||||||
use Da\User\Traits\AuthClientUserIdTrait;
|
use pcrt\User\Traits\AuthClientUserIdTrait;
|
||||||
use yii\authclient\clients\Facebook as BaseFacebook;
|
use yii\authclient\clients\Facebook as BaseFacebook;
|
||||||
|
|
||||||
class Facebook extends BaseFacebook implements AuthClientInterface
|
class Facebook extends BaseFacebook implements AuthClientInterface
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\AuthClient;
|
namespace pcrt\User\AuthClient;
|
||||||
|
|
||||||
use Da\User\Contracts\AuthClientInterface;
|
use pcrt\User\Contracts\AuthClientInterface;
|
||||||
use Da\User\Traits\AuthClientUserIdTrait;
|
use pcrt\User\Traits\AuthClientUserIdTrait;
|
||||||
use yii\authclient\clients\GitHub as BaseGitHub;
|
use yii\authclient\clients\GitHub as BaseGitHub;
|
||||||
|
|
||||||
class GitHub extends BaseGitHub implements AuthClientInterface
|
class GitHub extends BaseGitHub implements AuthClientInterface
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\AuthClient;
|
namespace pcrt\User\AuthClient;
|
||||||
|
|
||||||
use Da\User\Contracts\AuthClientInterface;
|
use pcrt\User\Contracts\AuthClientInterface;
|
||||||
use Da\User\Traits\AuthClientUserIdTrait;
|
use pcrt\User\Traits\AuthClientUserIdTrait;
|
||||||
use yii\authclient\clients\Google as BaseGoogle;
|
use yii\authclient\clients\Google as BaseGoogle;
|
||||||
|
|
||||||
class Google extends BaseGoogle implements AuthClientInterface
|
class Google extends BaseGoogle implements AuthClientInterface
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Da\User\AuthClient;
|
namespace pcrt\User\AuthClient;
|
||||||
|
|
||||||
use Da\User\Contracts\AuthClientInterface;
|
use pcrt\User\Contracts\AuthClientInterface;
|
||||||
use yii\authclient\OpenIdConnect;
|
use yii\authclient\OpenIdConnect;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\AuthClient;
|
namespace pcrt\User\AuthClient;
|
||||||
|
|
||||||
use Da\User\Contracts\AuthClientInterface;
|
use pcrt\User\Contracts\AuthClientInterface;
|
||||||
use Da\User\Traits\AuthClientUserIdTrait;
|
use pcrt\User\Traits\AuthClientUserIdTrait;
|
||||||
use yii\authclient\clients\LinkedIn as BaseLinkedIn;
|
use yii\authclient\clients\LinkedIn as BaseLinkedIn;
|
||||||
|
|
||||||
class LinkedIn extends BaseLinkedIn implements AuthClientInterface
|
class LinkedIn extends BaseLinkedIn implements AuthClientInterface
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\AuthClient;
|
namespace pcrt\User\AuthClient;
|
||||||
|
|
||||||
use Da\User\Contracts\AuthClientInterface;
|
use pcrt\User\Contracts\AuthClientInterface;
|
||||||
use Da\User\Traits\AuthClientUserIdTrait;
|
use pcrt\User\Traits\AuthClientUserIdTrait;
|
||||||
use yii\authclient\OAuth2;
|
use yii\authclient\OAuth2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\AuthClient;
|
namespace pcrt\User\AuthClient;
|
||||||
|
|
||||||
use Da\User\Contracts\AuthClientInterface;
|
use pcrt\User\Contracts\AuthClientInterface;
|
||||||
use Da\User\Traits\AuthClientUserIdTrait;
|
use pcrt\User\Traits\AuthClientUserIdTrait;
|
||||||
use yii\authclient\clients\Twitter as BaseTwitter;
|
use yii\authclient\clients\Twitter as BaseTwitter;
|
||||||
|
|
||||||
class Twitter extends BaseTwitter implements AuthClientInterface
|
class Twitter extends BaseTwitter implements AuthClientInterface
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\AuthClient;
|
namespace pcrt\User\AuthClient;
|
||||||
|
|
||||||
use Da\User\Contracts\AuthClientInterface;
|
use pcrt\User\Contracts\AuthClientInterface;
|
||||||
use Da\User\Traits\AuthClientUserIdTrait;
|
use pcrt\User\Traits\AuthClientUserIdTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\authclient\clients\VKontakte as BaseVKontakte;
|
use yii\authclient\clients\VKontakte as BaseVKontakte;
|
||||||
|
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\AuthClient;
|
namespace pcrt\User\AuthClient;
|
||||||
|
|
||||||
use Da\User\Contracts\AuthClientInterface;
|
use pcrt\User\Contracts\AuthClientInterface;
|
||||||
use Da\User\Traits\AuthClientUserIdTrait;
|
use pcrt\User\Traits\AuthClientUserIdTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\authclient\clients\Yandex as BaseYandex;
|
use yii\authclient\clients\Yandex as BaseYandex;
|
||||||
|
|
||||||
|
|||||||
@ -9,16 +9,16 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User;
|
namespace pcrt\User;
|
||||||
|
|
||||||
use Da\User\Component\AuthDbManagerComponent;
|
use pcrt\User\Component\AuthDbManagerComponent;
|
||||||
use Da\User\Contracts\AuthManagerInterface;
|
use pcrt\User\Contracts\AuthManagerInterface;
|
||||||
use Da\User\Controller\SecurityController;
|
use pcrt\User\Controller\SecurityController;
|
||||||
use Da\User\Event\FormEvent;
|
use pcrt\User\Event\FormEvent;
|
||||||
use Da\User\Helper\ClassMapHelper;
|
use pcrt\User\Helper\ClassMapHelper;
|
||||||
use Da\User\Model\SessionHistory;
|
use pcrt\User\Model\SessionHistory;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Search\SessionHistorySearch;
|
use pcrt\User\Search\SessionHistorySearch;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\authclient\Collection;
|
use yii\authclient\Collection;
|
||||||
use yii\base\Application;
|
use yii\base\Application;
|
||||||
@ -135,7 +135,7 @@ class Bootstrap implements BootstrapInterface
|
|||||||
$modelClassMap[$class] = $model;
|
$modelClassMap[$class] = $model;
|
||||||
if (in_array($name, ['User', 'Profile', 'Token', 'SocialNetworkAccount', 'SessionHistory'])) {
|
if (in_array($name, ['User', 'Profile', 'Token', 'SocialNetworkAccount', 'SessionHistory'])) {
|
||||||
$di->set(
|
$di->set(
|
||||||
"Da\\User\\Query\\{$name}Query",
|
"pcrt\\User\\Query\\{$name}Query",
|
||||||
function () use ($model) {
|
function () use ($model) {
|
||||||
return $model::find();
|
return $model::find();
|
||||||
}
|
}
|
||||||
@ -171,13 +171,13 @@ class Bootstrap implements BootstrapInterface
|
|||||||
$defaultTwoFactorAuthenticationValidators =
|
$defaultTwoFactorAuthenticationValidators =
|
||||||
[
|
[
|
||||||
'google-authenticator' => [
|
'google-authenticator' => [
|
||||||
'class' => \Da\User\Validator\TwoFactorCodeValidator::class,
|
'class' => \pcrt\User\Validator\TwoFactorCodeValidator::class,
|
||||||
'description' => Yii::t('usuario', 'Google Authenticator'),
|
'description' => Yii::t('usuario', 'Google Authenticator'),
|
||||||
'configurationUrl' => 'user/settings/two-factor',
|
'configurationUrl' => 'user/settings/two-factor',
|
||||||
'enabled' => true
|
'enabled' => true
|
||||||
],
|
],
|
||||||
'email' => [
|
'email' => [
|
||||||
'class' => \Da\User\Validator\TwoFactorEmailValidator::class,
|
'class' => \pcrt\User\Validator\TwoFactorEmailValidator::class,
|
||||||
'description' => Yii::t('usuario', 'Email'),
|
'description' => Yii::t('usuario', 'Email'),
|
||||||
'configurationUrl' => 'user/settings/two-factor-email',
|
'configurationUrl' => 'user/settings/two-factor-email',
|
||||||
// Time duration of the code in seconds
|
// Time duration of the code in seconds
|
||||||
@ -185,7 +185,7 @@ class Bootstrap implements BootstrapInterface
|
|||||||
'enabled' => true
|
'enabled' => true
|
||||||
],
|
],
|
||||||
'sms' => [
|
'sms' => [
|
||||||
'class' => \Da\User\Validator\TwoFactorTextMessageValidator::class,
|
'class' => \pcrt\User\Validator\TwoFactorTextMessageValidator::class,
|
||||||
'description' => Yii::t('usuario', 'Text message'),
|
'description' => Yii::t('usuario', 'Text message'),
|
||||||
'configurationUrl' => 'user/settings/two-factor-sms',
|
'configurationUrl' => 'user/settings/two-factor-sms',
|
||||||
// component for sending sms
|
// component for sending sms
|
||||||
@ -373,31 +373,31 @@ class Bootstrap implements BootstrapInterface
|
|||||||
|
|
||||||
$defaults = [
|
$defaults = [
|
||||||
// --- models
|
// --- models
|
||||||
'User' => 'Da\User\Model\User',
|
'User' => 'pcrt\User\Model\User',
|
||||||
'SocialNetworkAccount' => 'Da\User\Model\SocialNetworkAccount',
|
'SocialNetworkAccount' => 'pcrt\User\Model\SocialNetworkAccount',
|
||||||
'Profile' => 'Da\User\Model\Profile',
|
'Profile' => 'pcrt\User\Model\Profile',
|
||||||
'Token' => 'Da\User\Model\Token',
|
'Token' => 'pcrt\User\Model\Token',
|
||||||
'Assignment' => 'Da\User\Model\Assignment',
|
'Assignment' => 'pcrt\User\Model\Assignment',
|
||||||
'Permission' => 'Da\User\Model\Permission',
|
'Permission' => 'pcrt\User\Model\Permission',
|
||||||
'Role' => 'Da\User\Model\Role',
|
'Role' => 'pcrt\User\Model\Role',
|
||||||
'SessionHistory' => SessionHistory::class,
|
'SessionHistory' => SessionHistory::class,
|
||||||
// --- search
|
// --- search
|
||||||
'UserSearch' => 'Da\User\Search\UserSearch',
|
'UserSearch' => 'pcrt\User\Search\UserSearch',
|
||||||
'PermissionSearch' => 'Da\User\Search\PermissionSearch',
|
'PermissionSearch' => 'pcrt\User\Search\PermissionSearch',
|
||||||
'RoleSearch' => 'Da\User\Search\RoleSearch',
|
'RoleSearch' => 'pcrt\User\Search\RoleSearch',
|
||||||
'SessionHistorySearch' => SessionHistorySearch::class,
|
'SessionHistorySearch' => SessionHistorySearch::class,
|
||||||
// --- forms
|
// --- forms
|
||||||
'RegistrationForm' => 'Da\User\Form\RegistrationForm',
|
'RegistrationForm' => 'pcrt\User\Form\RegistrationForm',
|
||||||
'ResendForm' => 'Da\User\Form\ResendForm',
|
'ResendForm' => 'pcrt\User\Form\ResendForm',
|
||||||
'LoginForm' => 'Da\User\Form\LoginForm',
|
'LoginForm' => 'pcrt\User\Form\LoginForm',
|
||||||
'SettingsForm' => 'Da\User\Form\SettingsForm',
|
'SettingsForm' => 'pcrt\User\Form\SettingsForm',
|
||||||
'RecoveryForm' => 'Da\User\Form\RecoveryForm',
|
'RecoveryForm' => 'pcrt\User\Form\RecoveryForm',
|
||||||
// --- services
|
// --- services
|
||||||
'MailService' => 'Da\User\Service\MailService',
|
'MailService' => 'pcrt\User\Service\MailService',
|
||||||
];
|
];
|
||||||
|
|
||||||
$routes = [
|
$routes = [
|
||||||
'Da\User\Model' => [
|
'pcrt\User\Model' => [
|
||||||
'User',
|
'User',
|
||||||
'SocialNetworkAccount',
|
'SocialNetworkAccount',
|
||||||
'Profile',
|
'Profile',
|
||||||
@ -409,7 +409,7 @@ class Bootstrap implements BootstrapInterface
|
|||||||
'AbstractAuthItem',
|
'AbstractAuthItem',
|
||||||
'Rule',
|
'Rule',
|
||||||
],
|
],
|
||||||
'Da\User\Search' => [
|
'pcrt\User\Search' => [
|
||||||
'UserSearch',
|
'UserSearch',
|
||||||
'PermissionSearch',
|
'PermissionSearch',
|
||||||
'RoleSearch',
|
'RoleSearch',
|
||||||
@ -417,7 +417,7 @@ class Bootstrap implements BootstrapInterface
|
|||||||
'RuleSearch',
|
'RuleSearch',
|
||||||
'AbstractAuthItemSearch',
|
'AbstractAuthItemSearch',
|
||||||
],
|
],
|
||||||
'Da\User\Form' => [
|
'pcrt\User\Form' => [
|
||||||
'RegistrationForm',
|
'RegistrationForm',
|
||||||
'ResendForm',
|
'ResendForm',
|
||||||
'LoginForm',
|
'LoginForm',
|
||||||
@ -425,7 +425,7 @@ class Bootstrap implements BootstrapInterface
|
|||||||
'RecoveryForm',
|
'RecoveryForm',
|
||||||
'GdprDeleteForm',
|
'GdprDeleteForm',
|
||||||
],
|
],
|
||||||
'Da\User\Service' => [
|
'pcrt\User\Service' => [
|
||||||
'AccountConfirmationService',
|
'AccountConfirmationService',
|
||||||
'AuthItemEditionService',
|
'AuthItemEditionService',
|
||||||
'AuthRuleEditionService',
|
'AuthRuleEditionService',
|
||||||
@ -447,7 +447,7 @@ class Bootstrap implements BootstrapInterface
|
|||||||
'UserCreateService',
|
'UserCreateService',
|
||||||
'UserRegisterService',
|
'UserRegisterService',
|
||||||
],
|
],
|
||||||
'Da\User\Helper' => [
|
'pcrt\User\Helper' => [
|
||||||
'AuthHelper',
|
'AuthHelper',
|
||||||
'ClassMapHelper',
|
'ClassMapHelper',
|
||||||
'MigrationHelper',
|
'MigrationHelper',
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Command;
|
namespace pcrt\User\Command;
|
||||||
|
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Da\User\Service\UserConfirmationService;
|
use pcrt\User\Service\UserConfirmationService;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Module;
|
use yii\base\Module;
|
||||||
use yii\console\Controller;
|
use yii\console\Controller;
|
||||||
|
|||||||
@ -9,12 +9,12 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Command;
|
namespace pcrt\User\Command;
|
||||||
|
|
||||||
use Da\User\Factory\MailFactory;
|
use pcrt\User\Factory\MailFactory;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Service\UserCreateService;
|
use pcrt\User\Service\UserCreateService;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\console\Controller;
|
use yii\console\Controller;
|
||||||
use yii\helpers\Console;
|
use yii\helpers\Console;
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Command;
|
namespace pcrt\User\Command;
|
||||||
|
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Module;
|
use yii\base\Module;
|
||||||
|
|||||||
@ -9,12 +9,12 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Command;
|
namespace pcrt\User\Command;
|
||||||
|
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Da\User\Service\ResetPasswordService;
|
use pcrt\User\Service\ResetPasswordService;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
use yii\base\Module;
|
use yii\base\Module;
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Component;
|
namespace pcrt\User\Component;
|
||||||
|
|
||||||
use Da\User\Contracts\AuthManagerInterface;
|
use pcrt\User\Contracts\AuthManagerInterface;
|
||||||
use yii\base\InvalidArgumentException;
|
use yii\base\InvalidArgumentException;
|
||||||
use yii\db\Expression;
|
use yii\db\Expression;
|
||||||
use yii\db\Query;
|
use yii\db\Query;
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Component;
|
namespace pcrt\User\Component;
|
||||||
|
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Component;
|
use yii\base\Component;
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Contracts;
|
namespace pcrt\User\Contracts;
|
||||||
|
|
||||||
use yii\authclient\ClientInterface;
|
use yii\authclient\ClientInterface;
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Contracts;
|
namespace pcrt\User\Contracts;
|
||||||
|
|
||||||
use yii\rbac\ManagerInterface;
|
use yii\rbac\ManagerInterface;
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Contracts;
|
namespace pcrt\User\Contracts;
|
||||||
|
|
||||||
interface MailChangeStrategyInterface extends StrategyInterface
|
interface MailChangeStrategyInterface extends StrategyInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Contracts;
|
namespace pcrt\User\Contracts;
|
||||||
|
|
||||||
interface ServiceInterface
|
interface ServiceInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Contracts;
|
namespace pcrt\User\Contracts;
|
||||||
|
|
||||||
interface StrategyInterface
|
interface StrategyInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Contracts;
|
namespace pcrt\User\Contracts;
|
||||||
|
|
||||||
interface ValidatorInterface
|
interface ValidatorInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,15 +9,15 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Controller;
|
namespace pcrt\User\Controller;
|
||||||
|
|
||||||
use Da\User\Filter\AccessRuleFilter;
|
use pcrt\User\Filter\AccessRuleFilter;
|
||||||
use Da\User\Helper\AuthHelper;
|
use pcrt\User\Helper\AuthHelper;
|
||||||
use Da\User\Model\AbstractAuthItem;
|
use pcrt\User\Model\AbstractAuthItem;
|
||||||
use Da\User\Module;
|
use pcrt\User\Module;
|
||||||
use Da\User\Service\AuthItemEditionService;
|
use pcrt\User\Service\AuthItemEditionService;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Validator\AjaxRequestModelValidator;
|
use pcrt\User\Validator\AjaxRequestModelValidator;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\filters\AccessControl;
|
use yii\filters\AccessControl;
|
||||||
use yii\web\Controller;
|
use yii\web\Controller;
|
||||||
|
|||||||
@ -9,26 +9,26 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Controller;
|
namespace pcrt\User\Controller;
|
||||||
|
|
||||||
use Da\User\Event\UserEvent;
|
use pcrt\User\Event\UserEvent;
|
||||||
use Da\User\Factory\MailFactory;
|
use pcrt\User\Factory\MailFactory;
|
||||||
use Da\User\Filter\AccessRuleFilter;
|
use pcrt\User\Filter\AccessRuleFilter;
|
||||||
use Da\User\Model\Profile;
|
use pcrt\User\Model\Profile;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Da\User\Search\SessionHistorySearch;
|
use pcrt\User\Search\SessionHistorySearch;
|
||||||
use Da\User\Search\UserSearch;
|
use pcrt\User\Search\UserSearch;
|
||||||
use Da\User\Service\PasswordExpireService;
|
use pcrt\User\Service\PasswordExpireService;
|
||||||
use Da\User\Service\PasswordRecoveryService;
|
use pcrt\User\Service\PasswordRecoveryService;
|
||||||
use Da\User\Service\SessionHistory\TerminateUserSessionsService;
|
use pcrt\User\Service\SessionHistory\TerminateUserSessionsService;
|
||||||
use Da\User\Service\SwitchIdentityService;
|
use pcrt\User\Service\SwitchIdentityService;
|
||||||
use Da\User\Service\UserBlockService;
|
use pcrt\User\Service\UserBlockService;
|
||||||
use Da\User\Service\UserConfirmationService;
|
use pcrt\User\Service\UserConfirmationService;
|
||||||
use Da\User\Service\UserCreateService;
|
use pcrt\User\Service\UserCreateService;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Da\User\Validator\AjaxRequestModelValidator;
|
use pcrt\User\Validator\AjaxRequestModelValidator;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Module;
|
use yii\base\Module;
|
||||||
use yii\db\ActiveRecord;
|
use yii\db\ActiveRecord;
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Controller;
|
namespace pcrt\User\Controller;
|
||||||
|
|
||||||
use Da\User\Model\Permission;
|
use pcrt\User\Model\Permission;
|
||||||
use Da\User\Search\PermissionSearch;
|
use pcrt\User\Search\PermissionSearch;
|
||||||
use yii\web\NotFoundHttpException;
|
use yii\web\NotFoundHttpException;
|
||||||
|
|
||||||
class PermissionController extends AbstractAuthItemController
|
class PermissionController extends AbstractAuthItemController
|
||||||
|
|||||||
@ -9,35 +9,35 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Controller;
|
namespace pcrt\User\Controller;
|
||||||
|
|
||||||
use Da\User\Contracts\MailChangeStrategyInterface;
|
use pcrt\User\Contracts\MailChangeStrategyInterface;
|
||||||
use Da\User\Event\GdprEvent;
|
use pcrt\User\Event\GdprEvent;
|
||||||
use Da\User\Event\ProfileEvent;
|
use pcrt\User\Event\ProfileEvent;
|
||||||
use Da\User\Event\SocialNetworkConnectEvent;
|
use pcrt\User\Event\SocialNetworkConnectEvent;
|
||||||
use Da\User\Event\UserEvent;
|
use pcrt\User\Event\UserEvent;
|
||||||
use Da\User\Form\GdprDeleteForm;
|
use pcrt\User\Form\GdprDeleteForm;
|
||||||
use Da\User\Form\SettingsForm;
|
use pcrt\User\Form\SettingsForm;
|
||||||
use Da\User\Helper\SecurityHelper;
|
use pcrt\User\Helper\SecurityHelper;
|
||||||
use Da\User\Model\Profile;
|
use pcrt\User\Model\Profile;
|
||||||
use Da\User\Model\SocialNetworkAccount;
|
use pcrt\User\Model\SocialNetworkAccount;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Module;
|
use pcrt\User\Module;
|
||||||
use Da\User\Query\ProfileQuery;
|
use pcrt\User\Query\ProfileQuery;
|
||||||
use Da\User\Query\SocialNetworkAccountQuery;
|
use pcrt\User\Query\SocialNetworkAccountQuery;
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Da\User\Search\SessionHistorySearch;
|
use pcrt\User\Search\SessionHistorySearch;
|
||||||
use Da\User\Service\EmailChangeService;
|
use pcrt\User\Service\EmailChangeService;
|
||||||
use Da\User\Service\SessionHistory\TerminateUserSessionsService;
|
use pcrt\User\Service\SessionHistory\TerminateUserSessionsService;
|
||||||
use Da\User\Service\TwoFactorEmailCodeGeneratorService;
|
use pcrt\User\Service\TwoFactorEmailCodeGeneratorService;
|
||||||
use Da\User\Service\TwoFactorQrCodeUriGeneratorService;
|
use pcrt\User\Service\TwoFactorQrCodeUriGeneratorService;
|
||||||
use Da\User\Service\TwoFactorSmsCodeGeneratorService;
|
use pcrt\User\Service\TwoFactorSmsCodeGeneratorService;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Da\User\Validator\AjaxRequestModelValidator;
|
use pcrt\User\Validator\AjaxRequestModelValidator;
|
||||||
use Da\User\Validator\TwoFactorCodeValidator;
|
use pcrt\User\Validator\TwoFactorCodeValidator;
|
||||||
use Da\User\Validator\TwoFactorEmailValidator;
|
use pcrt\User\Validator\TwoFactorEmailValidator;
|
||||||
use Da\User\Validator\TwoFactorTextMessageValidator;
|
use pcrt\User\Validator\TwoFactorTextMessageValidator;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\DynamicModel;
|
use yii\base\DynamicModel;
|
||||||
use yii\base\InvalidParamException;
|
use yii\base\InvalidParamException;
|
||||||
|
|||||||
@ -9,21 +9,21 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Controller;
|
namespace pcrt\User\Controller;
|
||||||
|
|
||||||
use Da\User\Event\FormEvent;
|
use pcrt\User\Event\FormEvent;
|
||||||
use Da\User\Event\ResetPasswordEvent;
|
use pcrt\User\Event\ResetPasswordEvent;
|
||||||
use Da\User\Factory\MailFactory;
|
use pcrt\User\Factory\MailFactory;
|
||||||
use Da\User\Form\RecoveryForm;
|
use pcrt\User\Form\RecoveryForm;
|
||||||
use Da\User\Model\Token;
|
use pcrt\User\Model\Token;
|
||||||
use Da\User\Module;
|
use pcrt\User\Module;
|
||||||
use Da\User\Query\TokenQuery;
|
use pcrt\User\Query\TokenQuery;
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Da\User\Service\PasswordRecoveryService;
|
use pcrt\User\Service\PasswordRecoveryService;
|
||||||
use Da\User\Service\ResetPasswordService;
|
use pcrt\User\Service\ResetPasswordService;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Da\User\Validator\AjaxRequestModelValidator;
|
use pcrt\User\Validator\AjaxRequestModelValidator;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
use yii\base\InvalidParamException;
|
use yii\base\InvalidParamException;
|
||||||
|
|||||||
@ -9,27 +9,27 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Controller;
|
namespace pcrt\User\Controller;
|
||||||
|
|
||||||
use Da\User\Event\FormEvent;
|
use pcrt\User\Event\FormEvent;
|
||||||
use Da\User\Event\SocialNetworkConnectEvent;
|
use pcrt\User\Event\SocialNetworkConnectEvent;
|
||||||
use Da\User\Event\UserEvent;
|
use pcrt\User\Event\UserEvent;
|
||||||
use Da\User\Factory\MailFactory;
|
use pcrt\User\Factory\MailFactory;
|
||||||
use Da\User\Form\RegistrationForm;
|
use pcrt\User\Form\RegistrationForm;
|
||||||
use Da\User\Form\ResendForm;
|
use pcrt\User\Form\ResendForm;
|
||||||
use Da\User\Helper\SecurityHelper;
|
use pcrt\User\Helper\SecurityHelper;
|
||||||
use Da\User\Model\SocialNetworkAccount;
|
use pcrt\User\Model\SocialNetworkAccount;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Query\SocialNetworkAccountQuery;
|
use pcrt\User\Query\SocialNetworkAccountQuery;
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Da\User\Service\AccountConfirmationService;
|
use pcrt\User\Service\AccountConfirmationService;
|
||||||
use Da\User\Service\ResendConfirmationService;
|
use pcrt\User\Service\ResendConfirmationService;
|
||||||
use Da\User\Service\UserConfirmationService;
|
use pcrt\User\Service\UserConfirmationService;
|
||||||
use Da\User\Service\UserCreateService;
|
use pcrt\User\Service\UserCreateService;
|
||||||
use Da\User\Service\UserRegisterService;
|
use pcrt\User\Service\UserRegisterService;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Da\User\Validator\AjaxRequestModelValidator;
|
use pcrt\User\Validator\AjaxRequestModelValidator;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Module;
|
use yii\base\Module;
|
||||||
use yii\filters\AccessControl;
|
use yii\filters\AccessControl;
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Controller;
|
namespace pcrt\User\Controller;
|
||||||
|
|
||||||
use Da\User\Model\Role;
|
use pcrt\User\Model\Role;
|
||||||
use Da\User\Search\RoleSearch;
|
use pcrt\User\Search\RoleSearch;
|
||||||
use yii\web\NotFoundHttpException;
|
use yii\web\NotFoundHttpException;
|
||||||
|
|
||||||
class RoleController extends AbstractAuthItemController
|
class RoleController extends AbstractAuthItemController
|
||||||
|
|||||||
@ -9,15 +9,15 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Controller;
|
namespace pcrt\User\Controller;
|
||||||
|
|
||||||
use Da\User\Filter\AccessRuleFilter;
|
use pcrt\User\Filter\AccessRuleFilter;
|
||||||
use Da\User\Model\Rule;
|
use pcrt\User\Model\Rule;
|
||||||
use Da\User\Search\RuleSearch;
|
use pcrt\User\Search\RuleSearch;
|
||||||
use Da\User\Service\AuthRuleEditionService;
|
use pcrt\User\Service\AuthRuleEditionService;
|
||||||
use Da\User\Traits\AuthManagerAwareTrait;
|
use pcrt\User\Traits\AuthManagerAwareTrait;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Validator\AjaxRequestModelValidator;
|
use pcrt\User\Validator\AjaxRequestModelValidator;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\filters\AccessControl;
|
use yii\filters\AccessControl;
|
||||||
use yii\filters\VerbFilter;
|
use yii\filters\VerbFilter;
|
||||||
|
|||||||
@ -9,20 +9,20 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Controller;
|
namespace pcrt\User\Controller;
|
||||||
|
|
||||||
use Da\User\Contracts\AuthClientInterface;
|
use pcrt\User\Contracts\AuthClientInterface;
|
||||||
use Da\User\Event\FormEvent;
|
use pcrt\User\Event\FormEvent;
|
||||||
use Da\User\Event\UserEvent;
|
use pcrt\User\Event\UserEvent;
|
||||||
use Da\User\Form\LoginForm;
|
use pcrt\User\Form\LoginForm;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Query\SocialNetworkAccountQuery;
|
use pcrt\User\Query\SocialNetworkAccountQuery;
|
||||||
use Da\User\Service\SocialNetworkAccountConnectService;
|
use pcrt\User\Service\SocialNetworkAccountConnectService;
|
||||||
use Da\User\Service\SocialNetworkAuthenticateService;
|
use pcrt\User\Service\SocialNetworkAuthenticateService;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Da\User\Validator\TwoFactorEmailValidator;
|
use pcrt\User\Validator\TwoFactorEmailValidator;
|
||||||
use Da\User\Validator\TwoFactorTextMessageValidator;
|
use pcrt\User\Validator\TwoFactorTextMessageValidator;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\authclient\AuthAction;
|
use yii\authclient\AuthAction;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
|
|||||||
@ -9,20 +9,20 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Controller\api\v1;
|
namespace pcrt\User\Controller\api\v1;
|
||||||
|
|
||||||
use Da\User\Event\UserEvent;
|
use pcrt\User\Event\UserEvent;
|
||||||
use Da\User\Factory\MailFactory;
|
use pcrt\User\Factory\MailFactory;
|
||||||
use Da\User\Model\Assignment;
|
use pcrt\User\Model\Assignment;
|
||||||
use Da\User\Model\Profile;
|
use pcrt\User\Model\Profile;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Da\User\Service\PasswordExpireService;
|
use pcrt\User\Service\PasswordExpireService;
|
||||||
use Da\User\Service\PasswordRecoveryService;
|
use pcrt\User\Service\PasswordRecoveryService;
|
||||||
use Da\User\Service\UserBlockService;
|
use pcrt\User\Service\UserBlockService;
|
||||||
use Da\User\Service\UserConfirmationService;
|
use pcrt\User\Service\UserConfirmationService;
|
||||||
use Da\User\Service\UserCreateService;
|
use pcrt\User\Service\UserCreateService;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Module;
|
use yii\base\Module;
|
||||||
use yii\db\ActiveRecord;
|
use yii\db\ActiveRecord;
|
||||||
@ -35,7 +35,7 @@ use yii\web\ServerErrorHttpException;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller that provides REST APIs to manage users.
|
* Controller that provides REST APIs to manage users.
|
||||||
* This controller is equivalent to `Da\User\Controller\AdminController`.
|
* This controller is equivalent to `pcrt\User\Controller\AdminController`.
|
||||||
*
|
*
|
||||||
* TODO:
|
* TODO:
|
||||||
* - `Info` and `SwitchIdentity` actions were not developed yet.
|
* - `Info` and `SwitchIdentity` actions were not developed yet.
|
||||||
@ -48,7 +48,7 @@ class AdminController extends ActiveController
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public $modelClass = 'Da\User\Model\User';
|
public $modelClass = 'pcrt\User\Model\User';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Event;
|
namespace pcrt\User\Event;
|
||||||
|
|
||||||
use yii\base\Event;
|
use yii\base\Event;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Event;
|
namespace pcrt\User\Event;
|
||||||
|
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use yii\base\Event;
|
use yii\base\Event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Event;
|
namespace pcrt\User\Event;
|
||||||
|
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Service\MailService;
|
use pcrt\User\Service\MailService;
|
||||||
use yii\base\Event;
|
use yii\base\Event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Event;
|
namespace pcrt\User\Event;
|
||||||
|
|
||||||
use Da\User\Model\Profile;
|
use pcrt\User\Model\Profile;
|
||||||
use yii\base\Event;
|
use yii\base\Event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Event;
|
namespace pcrt\User\Event;
|
||||||
|
|
||||||
use Da\User\Form\RecoveryForm;
|
use pcrt\User\Form\RecoveryForm;
|
||||||
use Da\User\Model\Token;
|
use pcrt\User\Model\Token;
|
||||||
use yii\base\Event;
|
use yii\base\Event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Event;
|
namespace pcrt\User\Event;
|
||||||
|
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use yii\base\Event;
|
use yii\base\Event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Event;
|
namespace pcrt\User\Event;
|
||||||
|
|
||||||
use Da\User\Model\SocialNetworkAccount;
|
use pcrt\User\Model\SocialNetworkAccount;
|
||||||
use yii\authclient\ClientInterface;
|
use yii\authclient\ClientInterface;
|
||||||
use yii\base\Event;
|
use yii\base\Event;
|
||||||
|
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Event;
|
namespace pcrt\User\Event;
|
||||||
|
|
||||||
use Da\User\Model\SocialNetworkAccount;
|
use pcrt\User\Model\SocialNetworkAccount;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use yii\base\Event;
|
use yii\base\Event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Event;
|
namespace pcrt\User\Event;
|
||||||
|
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use yii\base\Event;
|
use yii\base\Event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Factory;
|
namespace pcrt\User\Factory;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Yii;
|
use Yii;
|
||||||
|
|||||||
@ -9,13 +9,13 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Factory;
|
namespace pcrt\User\Factory;
|
||||||
|
|
||||||
use Da\User\Contracts\MailChangeStrategyInterface;
|
use pcrt\User\Contracts\MailChangeStrategyInterface;
|
||||||
use Da\User\Form\SettingsForm;
|
use pcrt\User\Form\SettingsForm;
|
||||||
use Da\User\Strategy\DefaultEmailChangeStrategy;
|
use pcrt\User\Strategy\DefaultEmailChangeStrategy;
|
||||||
use Da\User\Strategy\InsecureEmailChangeStrategy;
|
use pcrt\User\Strategy\InsecureEmailChangeStrategy;
|
||||||
use Da\User\Strategy\SecureEmailChangeStrategy;
|
use pcrt\User\Strategy\SecureEmailChangeStrategy;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidParamException;
|
use yii\base\InvalidParamException;
|
||||||
|
|||||||
@ -9,13 +9,13 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Factory;
|
namespace pcrt\User\Factory;
|
||||||
|
|
||||||
use Da\User\Event\MailEvent;
|
use pcrt\User\Event\MailEvent;
|
||||||
use Da\User\Model\Token;
|
use pcrt\User\Model\Token;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Module;
|
use pcrt\User\Module;
|
||||||
use Da\User\Service\MailService;
|
use pcrt\User\Service\MailService;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
|
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Factory;
|
namespace pcrt\User\Factory;
|
||||||
|
|
||||||
use Da\User\Model\Token;
|
use pcrt\User\Model\Token;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
|
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Filter;
|
namespace pcrt\User\Filter;
|
||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\filters\AccessRule;
|
use yii\filters\AccessRule;
|
||||||
|
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Filter;
|
namespace pcrt\User\Filter;
|
||||||
|
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Module;
|
use pcrt\User\Module;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\ActionFilter;
|
use yii\base\ActionFilter;
|
||||||
|
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Filter;
|
namespace pcrt\User\Filter;
|
||||||
|
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Module;
|
use pcrt\User\Module;
|
||||||
use Da\User\Traits\AuthManagerAwareTrait;
|
use pcrt\User\Traits\AuthManagerAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\ActionFilter;
|
use yii\base\ActionFilter;
|
||||||
|
|
||||||
|
|||||||
@ -9,17 +9,17 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Form;
|
namespace pcrt\User\Form;
|
||||||
|
|
||||||
use Da\User\Helper\SecurityHelper;
|
use pcrt\User\Helper\SecurityHelper;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class GdprDeleteForm
|
* Class GdprDeleteForm
|
||||||
* @package Da\User\Form
|
* @package pcrt\User\Form
|
||||||
*/
|
*/
|
||||||
class GdprDeleteForm extends Model
|
class GdprDeleteForm extends Model
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,16 +9,16 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Form;
|
namespace pcrt\User\Form;
|
||||||
|
|
||||||
use Da\User\Helper\SecurityHelper;
|
use pcrt\User\Helper\SecurityHelper;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Da\User\Validator\TwoFactorCodeValidator;
|
use pcrt\User\Validator\TwoFactorCodeValidator;
|
||||||
use Da\User\Validator\TwoFactorEmailValidator;
|
use pcrt\User\Validator\TwoFactorEmailValidator;
|
||||||
use Da\User\Validator\TwoFactorTextMessageValidator;
|
use pcrt\User\Validator\TwoFactorTextMessageValidator;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidParamException;
|
use yii\base\InvalidParamException;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
@ -87,7 +87,7 @@ class LoginForm extends Model
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
*
|
||||||
* @throws \Da\TwoFA\Exception\InvalidSecretKeyException (only if package is being used)
|
* @throws \pcrt\TwoFA\Exception\InvalidSecretKeyException (only if package is being used)
|
||||||
*/
|
*/
|
||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Form;
|
namespace pcrt\User\Form;
|
||||||
|
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
|
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Form;
|
namespace pcrt\User\Form;
|
||||||
|
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
use yii\helpers\Html;
|
use yii\helpers\Html;
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Form;
|
namespace pcrt\User\Form;
|
||||||
|
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
|
|
||||||
|
|||||||
@ -9,13 +9,13 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Form;
|
namespace pcrt\User\Form;
|
||||||
|
|
||||||
use Da\User\Factory\EmailChangeStrategyFactory;
|
use pcrt\User\Factory\EmailChangeStrategyFactory;
|
||||||
use Da\User\Helper\SecurityHelper;
|
use pcrt\User\Helper\SecurityHelper;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
use yii\base\InvalidParamException;
|
use yii\base\InvalidParamException;
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Helper;
|
namespace pcrt\User\Helper;
|
||||||
|
|
||||||
use Da\User\Model\AbstractAuthItem;
|
use pcrt\User\Model\AbstractAuthItem;
|
||||||
use Da\User\Module;
|
use pcrt\User\Module;
|
||||||
use Da\User\Traits\AuthManagerAwareTrait;
|
use pcrt\User\Traits\AuthManagerAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\helpers\ArrayHelper;
|
use yii\helpers\ArrayHelper;
|
||||||
use yii\rbac\Permission;
|
use yii\rbac\Permission;
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Helper;
|
namespace pcrt\User\Helper;
|
||||||
|
|
||||||
use yii\base\InvalidArgumentException;
|
use yii\base\InvalidArgumentException;
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Helper;
|
namespace pcrt\User\Helper;
|
||||||
|
|
||||||
class GravatarHelper
|
class GravatarHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Helper;
|
namespace pcrt\User\Helper;
|
||||||
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Helper;
|
namespace pcrt\User\Helper;
|
||||||
|
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Exception;
|
use yii\base\Exception;
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Helper;
|
namespace pcrt\User\Helper;
|
||||||
|
|
||||||
use DateTime;
|
use DateTime;
|
||||||
use DateTimeZone;
|
use DateTimeZone;
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Migration\Session;
|
namespace pcrt\User\Migration\Session;
|
||||||
|
|
||||||
use Da\User\Helper\MigrationHelper;
|
use pcrt\User\Helper\MigrationHelper;
|
||||||
use yii\db\Migration;
|
use yii\db\Migration;
|
||||||
|
|
||||||
class m000000_000001_create_session_history_table extends Migration
|
class m000000_000001_create_session_history_table extends Migration
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Migration;
|
namespace pcrt\User\Migration;
|
||||||
|
|
||||||
use Da\User\Helper\MigrationHelper;
|
use pcrt\User\Helper\MigrationHelper;
|
||||||
use yii\db\Migration;
|
use yii\db\Migration;
|
||||||
|
|
||||||
class m000000_000001_create_user_table extends Migration
|
class m000000_000001_create_user_table extends Migration
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Migration;
|
namespace pcrt\User\Migration;
|
||||||
|
|
||||||
use Da\User\Helper\MigrationHelper;
|
use pcrt\User\Helper\MigrationHelper;
|
||||||
use yii\db\Migration;
|
use yii\db\Migration;
|
||||||
|
|
||||||
class m000000_000002_create_profile_table extends Migration
|
class m000000_000002_create_profile_table extends Migration
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Migration;
|
namespace pcrt\User\Migration;
|
||||||
|
|
||||||
use Da\User\Helper\MigrationHelper;
|
use pcrt\User\Helper\MigrationHelper;
|
||||||
use yii\db\Migration;
|
use yii\db\Migration;
|
||||||
|
|
||||||
class m000000_000003_create_social_account_table extends Migration
|
class m000000_000003_create_social_account_table extends Migration
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Migration;
|
namespace pcrt\User\Migration;
|
||||||
|
|
||||||
use Da\User\Helper\MigrationHelper;
|
use pcrt\User\Helper\MigrationHelper;
|
||||||
use yii\db\Migration;
|
use yii\db\Migration;
|
||||||
|
|
||||||
class m000000_000004_create_token_table extends Migration
|
class m000000_000004_create_token_table extends Migration
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Migration;
|
namespace pcrt\User\Migration;
|
||||||
|
|
||||||
use yii\db\Migration;
|
use yii\db\Migration;
|
||||||
|
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Migration;
|
namespace pcrt\User\Migration;
|
||||||
|
|
||||||
use Da\User\Helper\MigrationHelper;
|
use pcrt\User\Helper\MigrationHelper;
|
||||||
use yii\db\Migration;
|
use yii\db\Migration;
|
||||||
|
|
||||||
class m000000_000006_add_two_factor_fields extends Migration
|
class m000000_000006_add_two_factor_fields extends Migration
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Migration;
|
namespace pcrt\User\Migration;
|
||||||
|
|
||||||
use yii\db\Migration;
|
use yii\db\Migration;
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Migration;
|
namespace pcrt\User\Migration;
|
||||||
|
|
||||||
use yii\db\Migration;
|
use yii\db\Migration;
|
||||||
|
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Migration;
|
namespace pcrt\User\Migration;
|
||||||
|
|
||||||
use Da\User\Helper\MigrationHelper;
|
use pcrt\User\Helper\MigrationHelper;
|
||||||
use yii\db\Migration;
|
use yii\db\Migration;
|
||||||
|
|
||||||
class m000000_000009_add_gdpr_consent_fields extends Migration
|
class m000000_000009_add_gdpr_consent_fields extends Migration
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Migration;
|
namespace pcrt\User\Migration;
|
||||||
|
|
||||||
use yii\db\Migration;
|
use yii\db\Migration;
|
||||||
|
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Model;
|
namespace pcrt\User\Model;
|
||||||
|
|
||||||
use Da\User\Traits\AuthManagerAwareTrait;
|
use pcrt\User\Traits\AuthManagerAwareTrait;
|
||||||
use Da\User\Validator\RbacItemsValidator;
|
use pcrt\User\Validator\RbacItemsValidator;
|
||||||
use Da\User\Validator\RbacRuleExistsValidator;
|
use pcrt\User\Validator\RbacRuleExistsValidator;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
use yii\rbac\Item;
|
use yii\rbac\Item;
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Model;
|
namespace pcrt\User\Model;
|
||||||
|
|
||||||
use Da\User\Traits\AuthManagerAwareTrait;
|
use pcrt\User\Traits\AuthManagerAwareTrait;
|
||||||
use Da\User\Validator\RbacItemsValidator;
|
use pcrt\User\Validator\RbacItemsValidator;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Model;
|
namespace pcrt\User\Model;
|
||||||
|
|
||||||
use yii\rbac\Item;
|
use yii\rbac\Item;
|
||||||
|
|
||||||
|
|||||||
@ -9,13 +9,13 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Model;
|
namespace pcrt\User\Model;
|
||||||
|
|
||||||
use Da\User\Helper\GravatarHelper;
|
use pcrt\User\Helper\GravatarHelper;
|
||||||
use Da\User\Query\ProfileQuery;
|
use pcrt\User\Query\ProfileQuery;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Da\User\Validator\TimeZoneValidator;
|
use pcrt\User\Validator\TimeZoneValidator;
|
||||||
use DateTime;
|
use DateTime;
|
||||||
use DateTimeZone;
|
use DateTimeZone;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Model;
|
namespace pcrt\User\Model;
|
||||||
|
|
||||||
use yii\rbac\Item;
|
use yii\rbac\Item;
|
||||||
|
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Model;
|
namespace pcrt\User\Model;
|
||||||
|
|
||||||
use Da\User\Traits\AuthManagerAwareTrait;
|
use pcrt\User\Traits\AuthManagerAwareTrait;
|
||||||
use Da\User\Validator\RbacRuleNameValidator;
|
use pcrt\User\Validator\RbacRuleNameValidator;
|
||||||
use Da\User\Validator\RbacRuleValidator;
|
use pcrt\User\Validator\RbacRuleValidator;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
|
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Model;
|
namespace pcrt\User\Model;
|
||||||
|
|
||||||
use Da\User\Module;
|
use pcrt\User\Module;
|
||||||
use Da\User\Query\SessionHistoryQuery;
|
use pcrt\User\Query\SessionHistoryQuery;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\behaviors\TimestampBehavior;
|
use yii\behaviors\TimestampBehavior;
|
||||||
use yii\db\ActiveQuery;
|
use yii\db\ActiveQuery;
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Model;
|
namespace pcrt\User\Model;
|
||||||
|
|
||||||
use Da\User\Query\SocialNetworkAccountQuery;
|
use pcrt\User\Query\SocialNetworkAccountQuery;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Exception;
|
use yii\base\Exception;
|
||||||
use yii\base\InvalidParamException;
|
use yii\base\InvalidParamException;
|
||||||
|
|||||||
@ -9,12 +9,12 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Model;
|
namespace pcrt\User\Model;
|
||||||
|
|
||||||
use Da\User\Helper\SecurityHelper;
|
use pcrt\User\Helper\SecurityHelper;
|
||||||
use Da\User\Query\TokenQuery;
|
use pcrt\User\Query\TokenQuery;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
use yii\base\InvalidParamException;
|
use yii\base\InvalidParamException;
|
||||||
|
|||||||
@ -9,12 +9,12 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Model;
|
namespace pcrt\User\Model;
|
||||||
|
|
||||||
use Da\User\Helper\SecurityHelper;
|
use pcrt\User\Helper\SecurityHelper;
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Exception;
|
use yii\base\Exception;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User;
|
namespace pcrt\User;
|
||||||
|
|
||||||
use Da\User\Contracts\MailChangeStrategyInterface;
|
use pcrt\User\Contracts\MailChangeStrategyInterface;
|
||||||
use Da\User\Controller\ProfileController;
|
use pcrt\User\Controller\ProfileController;
|
||||||
use Da\User\Filter\AccessRuleFilter;
|
use pcrt\User\Filter\AccessRuleFilter;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\Module as BaseModule;
|
use yii\base\Module as BaseModule;
|
||||||
use yii\helpers\Html;
|
use yii\helpers\Html;
|
||||||
@ -207,11 +207,11 @@ class Module extends BaseModule
|
|||||||
/**
|
/**
|
||||||
* @var string Web controller namespace
|
* @var string Web controller namespace
|
||||||
*/
|
*/
|
||||||
public $controllerNamespace = 'Da\User\Controller';
|
public $controllerNamespace = 'pcrt\User\Controller';
|
||||||
/**
|
/**
|
||||||
* @var string Console controller namespace
|
* @var string Console controller namespace
|
||||||
*/
|
*/
|
||||||
public $consoleControllerNamespace = 'Da\User\Command';
|
public $consoleControllerNamespace = 'pcrt\User\Command';
|
||||||
/**
|
/**
|
||||||
* @var array the class map. How the container should load specific classes
|
* @var array the class map. How the container should load specific classes
|
||||||
* @see Bootstrap::buildClassMap() for more details
|
* @see Bootstrap::buildClassMap() for more details
|
||||||
@ -232,7 +232,7 @@ class Module extends BaseModule
|
|||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public $viewPath = '@Da/User/resources/views';
|
public $viewPath = '@pcrt/User/resources/views';
|
||||||
/**
|
/**
|
||||||
* @var string the session key name to impersonate users. Please, modify it for security reasons!
|
* @var string the session key name to impersonate users. Please, modify it for security reasons!
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Query;
|
namespace pcrt\User\Query;
|
||||||
|
|
||||||
use yii\db\ActiveQuery;
|
use yii\db\ActiveQuery;
|
||||||
|
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Query;
|
namespace pcrt\User\Query;
|
||||||
|
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\web\Session;
|
use yii\web\Session;
|
||||||
|
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Query;
|
namespace pcrt\User\Query;
|
||||||
|
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\db\ActiveQuery;
|
use yii\db\ActiveQuery;
|
||||||
|
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Query;
|
namespace pcrt\User\Query;
|
||||||
|
|
||||||
use Da\User\Contracts\AuthClientInterface;
|
use pcrt\User\Contracts\AuthClientInterface;
|
||||||
use yii\db\ActiveQuery;
|
use yii\db\ActiveQuery;
|
||||||
|
|
||||||
class SocialNetworkAccountQuery extends ActiveQuery
|
class SocialNetworkAccountQuery extends ActiveQuery
|
||||||
|
|||||||
@ -9,9 +9,9 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Query;
|
namespace pcrt\User\Query;
|
||||||
|
|
||||||
use Da\User\Model\Token;
|
use pcrt\User\Model\Token;
|
||||||
use yii\db\ActiveQuery;
|
use yii\db\ActiveQuery;
|
||||||
|
|
||||||
class TokenQuery extends ActiveQuery
|
class TokenQuery extends ActiveQuery
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Query;
|
namespace pcrt\User\Query;
|
||||||
|
|
||||||
use yii\db\ActiveQuery;
|
use yii\db\ActiveQuery;
|
||||||
|
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Search;
|
namespace pcrt\User\Search;
|
||||||
|
|
||||||
use Da\User\Traits\AuthManagerAwareTrait;
|
use pcrt\User\Traits\AuthManagerAwareTrait;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
use yii\data\ArrayDataProvider;
|
use yii\data\ArrayDataProvider;
|
||||||
use yii\db\Query;
|
use yii\db\Query;
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Search;
|
namespace pcrt\User\Search;
|
||||||
|
|
||||||
use yii\rbac\Item;
|
use yii\rbac\Item;
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Search;
|
namespace pcrt\User\Search;
|
||||||
|
|
||||||
use yii\rbac\Item;
|
use yii\rbac\Item;
|
||||||
|
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Search;
|
namespace pcrt\User\Search;
|
||||||
|
|
||||||
use Da\User\Model\Rule;
|
use pcrt\User\Model\Rule;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
use yii\base\InvalidParamException;
|
use yii\base\InvalidParamException;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Search;
|
namespace pcrt\User\Search;
|
||||||
|
|
||||||
use Da\User\Model\SessionHistory;
|
use pcrt\User\Model\SessionHistory;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
use yii\base\InvalidParamException;
|
use yii\base\InvalidParamException;
|
||||||
use yii\data\ActiveDataProvider;
|
use yii\data\ActiveDataProvider;
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Search;
|
namespace pcrt\User\Search;
|
||||||
|
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidParamException;
|
use yii\base\InvalidParamException;
|
||||||
use yii\base\Model;
|
use yii\base\Model;
|
||||||
|
|||||||
@ -9,12 +9,12 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Service;
|
namespace pcrt\User\Service;
|
||||||
|
|
||||||
use Da\User\Contracts\ServiceInterface;
|
use pcrt\User\Contracts\ServiceInterface;
|
||||||
use Da\User\Model\Token;
|
use pcrt\User\Model\Token;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Query\TokenQuery;
|
use pcrt\User\Query\TokenQuery;
|
||||||
|
|
||||||
class AccountConfirmationService implements ServiceInterface
|
class AccountConfirmationService implements ServiceInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,13 +9,13 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Service;
|
namespace pcrt\User\Service;
|
||||||
|
|
||||||
use Da\User\Contracts\ServiceInterface;
|
use pcrt\User\Contracts\ServiceInterface;
|
||||||
use Da\User\Factory\AuthItemFactory;
|
use pcrt\User\Factory\AuthItemFactory;
|
||||||
use Da\User\Model\AbstractAuthItem;
|
use pcrt\User\Model\AbstractAuthItem;
|
||||||
use Da\User\Traits\AuthManagerAwareTrait;
|
use pcrt\User\Traits\AuthManagerAwareTrait;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
class AuthItemEditionService implements ServiceInterface
|
class AuthItemEditionService implements ServiceInterface
|
||||||
|
|||||||
@ -9,12 +9,12 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Service;
|
namespace pcrt\User\Service;
|
||||||
|
|
||||||
use Da\User\Contracts\ServiceInterface;
|
use pcrt\User\Contracts\ServiceInterface;
|
||||||
use Da\User\Model\Rule;
|
use pcrt\User\Model\Rule;
|
||||||
use Da\User\Traits\AuthManagerAwareTrait;
|
use pcrt\User\Traits\AuthManagerAwareTrait;
|
||||||
use Da\User\Traits\ContainerAwareTrait;
|
use pcrt\User\Traits\ContainerAwareTrait;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
class AuthRuleEditionService implements ServiceInterface
|
class AuthRuleEditionService implements ServiceInterface
|
||||||
|
|||||||
@ -9,15 +9,15 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Service;
|
namespace pcrt\User\Service;
|
||||||
|
|
||||||
use Da\User\Contracts\MailChangeStrategyInterface;
|
use pcrt\User\Contracts\MailChangeStrategyInterface;
|
||||||
use Da\User\Contracts\ServiceInterface;
|
use pcrt\User\Contracts\ServiceInterface;
|
||||||
use Da\User\Model\Token;
|
use pcrt\User\Model\Token;
|
||||||
use Da\User\Model\User;
|
use pcrt\User\Model\User;
|
||||||
use Da\User\Query\TokenQuery;
|
use pcrt\User\Query\TokenQuery;
|
||||||
use Da\User\Query\UserQuery;
|
use pcrt\User\Query\UserQuery;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
|
|
||||||
class EmailChangeService implements ServiceInterface
|
class EmailChangeService implements ServiceInterface
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
* the LICENSE file that was distributed with this source code.
|
* the LICENSE file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Da\User\Service;
|
namespace pcrt\User\Service;
|
||||||
|
|
||||||
use Da\User\Contracts\ServiceInterface;
|
use pcrt\User\Contracts\ServiceInterface;
|
||||||
use Da\User\Traits\ModuleAwareTrait;
|
use pcrt\User\Traits\ModuleAwareTrait;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\mail\BaseMailer;
|
use yii\mail\BaseMailer;
|
||||||
use yii\mail\MailerInterface;
|
use yii\mail\MailerInterface;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user