From 9b614eca1aafd30e0dbf6c44a20656329a882a42 Mon Sep 17 00:00:00 2001 From: resurtm Date: Tue, 20 Dec 2016 14:00:41 +0600 Subject: [PATCH] preparing extension for publishing wip --- lib/User/AuthClient/Facebook.php | 9 +++++++++ lib/User/AuthClient/GitHub.php | 9 +++++++++ lib/User/AuthClient/Google.php | 9 +++++++++ lib/User/AuthClient/LinkedIn.php | 9 +++++++++ lib/User/AuthClient/Twitter.php | 9 +++++++++ lib/User/AuthClient/VKontakte.php | 9 +++++++++ lib/User/AuthClient/Yandex.php | 9 +++++++++ lib/User/Bootstrap.php | 9 +++++++++ lib/User/Command/ConfirmController.php | 9 +++++++++ lib/User/Command/CreateController.php | 9 +++++++++ lib/User/Command/DeleteController.php | 9 +++++++++ lib/User/Command/PasswordController.php | 9 +++++++++ lib/User/Component/AuthDbManagerComponent.php | 9 +++++++++ lib/User/Contracts/AuthClientInterface.php | 9 +++++++++ lib/User/Contracts/AuthManagerInterface.php | 9 +++++++++ .../Contracts/MailChangeStrategyInterface.php | 9 +++++++++ lib/User/Contracts/ServiceInterface.php | 9 +++++++++ lib/User/Contracts/StrategyInterface.php | 9 +++++++++ lib/User/Contracts/ValidatorInterface.php | 9 +++++++++ .../Controller/AbstractAuthItemController.php | 9 +++++++++ lib/User/Controller/AdminController.php | 9 +++++++++ lib/User/Controller/PermissionController.php | 9 +++++++++ lib/User/Controller/ProfileController.php | 9 +++++++++ lib/User/Controller/RecoveryController.php | 9 +++++++++ lib/User/Controller/RegistrationController.php | 9 +++++++++ lib/User/Controller/RoleController.php | 9 +++++++++ lib/User/Controller/SecurityController.php | 9 +++++++++ lib/User/Controller/SettingsController.php | 9 +++++++++ lib/User/Event/FormEvent.php | 9 +++++++++ lib/User/Event/ProfileEvent.php | 9 +++++++++ lib/User/Event/ResetPasswordEvent.php | 9 +++++++++ lib/User/Event/SocialNetworkAuthEvent.php | 9 +++++++++ lib/User/Event/SocialNetworkConnectEvent.php | 9 +++++++++ lib/User/Event/UserEvent.php | 9 +++++++++ lib/User/Factory/AuthItemFactory.php | 9 +++++++++ lib/User/Factory/EmailChangeStrategyFactory.php | 9 +++++++++ lib/User/Factory/MailFactory.php | 9 +++++++++ lib/User/Factory/TokenFactory.php | 9 +++++++++ lib/User/Filter/AccessRuleFilter.php | 9 +++++++++ lib/User/Form/LoginForm.php | 9 +++++++++ lib/User/Form/RecoveryForm.php | 9 +++++++++ lib/User/Form/RegistrationForm.php | 9 +++++++++ lib/User/Form/ResendForm.php | 9 +++++++++ lib/User/Form/SettingsForm.php | 9 +++++++++ lib/User/Helper/AuthHelper.php | 9 +++++++++ lib/User/Helper/ClassMapHelper.php | 9 +++++++++ lib/User/Helper/GravatarHelper.php | 9 +++++++++ lib/User/Helper/SecurityHelper.php | 9 +++++++++ lib/User/Helper/TimezoneHelper.php | 9 +++++++++ .../m000000_000001_create_user_table.php | 9 +++++++++ .../m000000_000002_create_profile_table.php | 9 +++++++++ ...000000_000003_create_social_account_table.php | 9 +++++++++ .../m000000_000004_create_token_table.php | 9 +++++++++ lib/User/Model/AbstractAuthItem.php | 9 +++++++++ lib/User/Model/Assignment.php | 9 +++++++++ lib/User/Model/Permission.php | 9 +++++++++ lib/User/Model/Profile.php | 9 +++++++++ lib/User/Model/Role.php | 9 +++++++++ lib/User/Model/SocialNetworkAccount.php | 9 +++++++++ lib/User/Model/Token.php | 9 +++++++++ lib/User/Model/User.php | 9 +++++++++ lib/User/Module.php | 12 +++++++++++- lib/User/Query/ProfileQuery.php | 9 +++++++++ lib/User/Query/SocialNetworkAccountQuery.php | 9 +++++++++ lib/User/Query/TokenQuery.php | 9 +++++++++ lib/User/Query/UserQuery.php | 9 +++++++++ lib/User/Search/AbstractAuthItemSearch.php | 9 +++++++++ lib/User/Search/PermissionSearch.php | 9 +++++++++ lib/User/Search/RoleSearch.php | 9 +++++++++ lib/User/Search/UserSearch.php | 9 +++++++++ lib/User/Service/AuthItemEditionService.php | 9 +++++++++ lib/User/Service/ResendConfirmationService.php | 9 +++++++++ lib/User/Service/ResetPasswordService.php | 9 +++++++++ .../SocialNetworkAccountConnectService.php | 9 +++++++++ .../Service/SocialNetworkAuthenticateService.php | 9 +++++++++ .../Service/UpdateAuthAssignmentsService.php | 9 +++++++++ lib/User/Service/UserBlockService.php | 9 +++++++++ lib/User/Service/UserConfirmationService.php | 9 +++++++++ lib/User/Service/UserCreateService.php | 9 +++++++++ lib/User/Service/UserRegisterService.php | 9 +++++++++ lib/User/Strategy/DefaultEmailChangeStrategy.php | 9 +++++++++ .../Strategy/InsecureEmailChangeStrategy.php | 9 +++++++++ lib/User/Strategy/SecureEmailChangeStrategy.php | 9 +++++++++ lib/User/Traits/AuthManagerTrait.php | 9 +++++++++ lib/User/Traits/ContainerTrait.php | 9 +++++++++ lib/User/Traits/ModuleTrait.php | 9 +++++++++ lib/User/Validator/AjaxRequestModelValidator.php | 9 +++++++++ lib/User/Validator/RbacItemsValidator.php | 9 +++++++++ lib/User/Validator/RbacRuleValidator.php | 9 +++++++++ lib/User/Validator/TimeZoneValidator.php | 9 +++++++++ lib/User/Widget/AssignmentsWidget.php | 9 +++++++++ lib/User/Widget/ConnectWidget.php | 9 +++++++++ lib/User/Widget/LoginWidget.php | 9 +++++++++ lib/User/resources/i18n/message.php | 9 +++++++++ lib/User/resources/views/admin/_account.php | 9 +++++++++ lib/User/resources/views/admin/_assignments.php | 9 +++++++++ lib/User/resources/views/admin/_info.php | 9 +++++++++ lib/User/resources/views/admin/_profile.php | 9 +++++++++ lib/User/resources/views/admin/_user.php | 10 ++++++++++ lib/User/resources/views/admin/create.php | 9 +++++++++ lib/User/resources/views/admin/index.php | 9 +++++++++ lib/User/resources/views/admin/update.php | 9 +++++++++ lib/User/resources/views/mail/confirmation.php | 9 +++++++++ lib/User/resources/views/mail/layouts/html.php | 10 ++++++++++ lib/User/resources/views/mail/layouts/text.php | 10 ++++++++++ lib/User/resources/views/mail/reconfirmation.php | 10 ++++++++++ lib/User/resources/views/mail/recovery.php | 9 +++++++++ .../resources/views/mail/text/confirmation.php | 9 +++++++++ .../resources/views/mail/text/reconfirmation.php | 10 ++++++++++ lib/User/resources/views/mail/text/recovery.php | 10 ++++++++++ lib/User/resources/views/mail/text/welcome.php | 9 +++++++++ lib/User/resources/views/mail/welcome.php | 10 ++++++++++ lib/User/resources/views/permission/_form.php | 10 ++++++++++ lib/User/resources/views/permission/create.php | 10 ++++++++++ lib/User/resources/views/permission/index.php | 9 +++++++++ lib/User/resources/views/permission/update.php | 10 ++++++++++ lib/User/resources/views/profile/show.php | 9 +++++++++ lib/User/resources/views/recovery/request.php | 10 ++++++++++ lib/User/resources/views/recovery/reset.php | 9 +++++++++ .../resources/views/registration/connect.php | 10 ++++++++++ .../resources/views/registration/register.php | 9 +++++++++ lib/User/resources/views/registration/resend.php | 10 ++++++++++ lib/User/resources/views/role/_form.php | 9 +++++++++ lib/User/resources/views/role/create.php | 9 +++++++++ lib/User/resources/views/role/index.php | 10 ++++++++++ lib/User/resources/views/role/update.php | 9 +++++++++ lib/User/resources/views/security/login.php | 9 +++++++++ lib/User/resources/views/settings/_menu.php | 9 +++++++++ lib/User/resources/views/settings/account.php | 9 +++++++++ lib/User/resources/views/settings/networks.php | 9 +++++++++ lib/User/resources/views/settings/profile.php | 9 +++++++++ lib/User/resources/views/shared/_alert.php | 9 +++++++++ lib/User/resources/views/shared/_menu.php | 9 +++++++++ lib/User/resources/views/shared/admin_layout.php | 9 +++++++++ lib/User/resources/views/shared/message.php | 10 ++++++++++ .../resources/views/widgets/assignments/form.php | 9 +++++++++ lib/User/resources/views/widgets/login/login.php | 16 ++++++++-------- tests/_app/config/.gitignore | 1 + 138 files changed, 1250 insertions(+), 9 deletions(-) create mode 100644 tests/_app/config/.gitignore diff --git a/lib/User/AuthClient/Facebook.php b/lib/User/AuthClient/Facebook.php index 1554a3b..e2a3ce1 100644 --- a/lib/User/AuthClient/Facebook.php +++ b/lib/User/AuthClient/Facebook.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\AuthClient; use Da\User\Contracts\AuthClientInterface; diff --git a/lib/User/AuthClient/GitHub.php b/lib/User/AuthClient/GitHub.php index e019972..1a298df 100644 --- a/lib/User/AuthClient/GitHub.php +++ b/lib/User/AuthClient/GitHub.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\AuthClient; use Da\User\Contracts\AuthClientInterface; diff --git a/lib/User/AuthClient/Google.php b/lib/User/AuthClient/Google.php index 1a6b1c5..871dabc 100644 --- a/lib/User/AuthClient/Google.php +++ b/lib/User/AuthClient/Google.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\AuthClient; use Da\User\Contracts\AuthClientInterface; diff --git a/lib/User/AuthClient/LinkedIn.php b/lib/User/AuthClient/LinkedIn.php index bdd1f8f..9528760 100644 --- a/lib/User/AuthClient/LinkedIn.php +++ b/lib/User/AuthClient/LinkedIn.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\AuthClient; use Da\User\Contracts\AuthClientInterface; diff --git a/lib/User/AuthClient/Twitter.php b/lib/User/AuthClient/Twitter.php index 35d6dbd..5a9f0a8 100644 --- a/lib/User/AuthClient/Twitter.php +++ b/lib/User/AuthClient/Twitter.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\AuthClient; use Da\User\Contracts\AuthClientInterface; diff --git a/lib/User/AuthClient/VKontakte.php b/lib/User/AuthClient/VKontakte.php index 3cfad1c..c53e58c 100644 --- a/lib/User/AuthClient/VKontakte.php +++ b/lib/User/AuthClient/VKontakte.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\AuthClient; use Da\User\Contracts\AuthClientInterface; diff --git a/lib/User/AuthClient/Yandex.php b/lib/User/AuthClient/Yandex.php index ff8a24b..4b1a367 100644 --- a/lib/User/AuthClient/Yandex.php +++ b/lib/User/AuthClient/Yandex.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\AuthClient; use Da\User\Contracts\AuthClientInterface; diff --git a/lib/User/Bootstrap.php b/lib/User/Bootstrap.php index 27664be..7b0d871 100644 --- a/lib/User/Bootstrap.php +++ b/lib/User/Bootstrap.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User; use Da\User\Component\AuthDbManagerComponent; diff --git a/lib/User/Command/ConfirmController.php b/lib/User/Command/ConfirmController.php index 6fa32d1..b9e758a 100644 --- a/lib/User/Command/ConfirmController.php +++ b/lib/User/Command/ConfirmController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Command; use Da\User\Query\UserQuery; diff --git a/lib/User/Command/CreateController.php b/lib/User/Command/CreateController.php index 5c30439..d85c0e5 100644 --- a/lib/User/Command/CreateController.php +++ b/lib/User/Command/CreateController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Command; use Da\User\Factory\MailFactory; diff --git a/lib/User/Command/DeleteController.php b/lib/User/Command/DeleteController.php index 912c6a4..e7cda45 100644 --- a/lib/User/Command/DeleteController.php +++ b/lib/User/Command/DeleteController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Command; use Da\User\Query\UserQuery; diff --git a/lib/User/Command/PasswordController.php b/lib/User/Command/PasswordController.php index 85aa829..b9a3b6a 100644 --- a/lib/User/Command/PasswordController.php +++ b/lib/User/Command/PasswordController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Command; use Da\User\Model\User; diff --git a/lib/User/Component/AuthDbManagerComponent.php b/lib/User/Component/AuthDbManagerComponent.php index 95be925..30fe4b3 100644 --- a/lib/User/Component/AuthDbManagerComponent.php +++ b/lib/User/Component/AuthDbManagerComponent.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Component; use Da\User\Contracts\AuthManagerInterface; diff --git a/lib/User/Contracts/AuthClientInterface.php b/lib/User/Contracts/AuthClientInterface.php index 479b120..2b3a335 100644 --- a/lib/User/Contracts/AuthClientInterface.php +++ b/lib/User/Contracts/AuthClientInterface.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Contracts; use yii\authclient\ClientInterface; diff --git a/lib/User/Contracts/AuthManagerInterface.php b/lib/User/Contracts/AuthManagerInterface.php index d025b0e..915d911 100644 --- a/lib/User/Contracts/AuthManagerInterface.php +++ b/lib/User/Contracts/AuthManagerInterface.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Contracts; use yii\rbac\ManagerInterface; diff --git a/lib/User/Contracts/MailChangeStrategyInterface.php b/lib/User/Contracts/MailChangeStrategyInterface.php index 271ca21..f1e1ff9 100644 --- a/lib/User/Contracts/MailChangeStrategyInterface.php +++ b/lib/User/Contracts/MailChangeStrategyInterface.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Contracts; interface MailChangeStrategyInterface extends StrategyInterface diff --git a/lib/User/Contracts/ServiceInterface.php b/lib/User/Contracts/ServiceInterface.php index a23970a..e31c053 100644 --- a/lib/User/Contracts/ServiceInterface.php +++ b/lib/User/Contracts/ServiceInterface.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Contracts; interface ServiceInterface diff --git a/lib/User/Contracts/StrategyInterface.php b/lib/User/Contracts/StrategyInterface.php index 5ea27cd..56fe3cc 100644 --- a/lib/User/Contracts/StrategyInterface.php +++ b/lib/User/Contracts/StrategyInterface.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Contracts; interface StrategyInterface diff --git a/lib/User/Contracts/ValidatorInterface.php b/lib/User/Contracts/ValidatorInterface.php index 3e74dce..c79d700 100644 --- a/lib/User/Contracts/ValidatorInterface.php +++ b/lib/User/Contracts/ValidatorInterface.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Contracts; interface ValidatorInterface diff --git a/lib/User/Controller/AbstractAuthItemController.php b/lib/User/Controller/AbstractAuthItemController.php index 6fe3795..2708697 100644 --- a/lib/User/Controller/AbstractAuthItemController.php +++ b/lib/User/Controller/AbstractAuthItemController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Controller; use Da\User\Filter\AccessRuleFilter; diff --git a/lib/User/Controller/AdminController.php b/lib/User/Controller/AdminController.php index 278bf9a..cb89364 100644 --- a/lib/User/Controller/AdminController.php +++ b/lib/User/Controller/AdminController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Controller; use Da\User\Event\UserEvent; diff --git a/lib/User/Controller/PermissionController.php b/lib/User/Controller/PermissionController.php index ef1c56d..fef9eb4 100644 --- a/lib/User/Controller/PermissionController.php +++ b/lib/User/Controller/PermissionController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Controller; use Da\User\Model\Permission; diff --git a/lib/User/Controller/ProfileController.php b/lib/User/Controller/ProfileController.php index df40f24..c6131e2 100644 --- a/lib/User/Controller/ProfileController.php +++ b/lib/User/Controller/ProfileController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Controller; use Da\User\Query\ProfileQuery; diff --git a/lib/User/Controller/RecoveryController.php b/lib/User/Controller/RecoveryController.php index e7a91ba..764208f 100644 --- a/lib/User/Controller/RecoveryController.php +++ b/lib/User/Controller/RecoveryController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Controller; use Da\User\Event\FormEvent; diff --git a/lib/User/Controller/RegistrationController.php b/lib/User/Controller/RegistrationController.php index d23159e..672e0d4 100644 --- a/lib/User/Controller/RegistrationController.php +++ b/lib/User/Controller/RegistrationController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Controller; use Da\User\Event\FormEvent; diff --git a/lib/User/Controller/RoleController.php b/lib/User/Controller/RoleController.php index e4639ab..1490ca3 100644 --- a/lib/User/Controller/RoleController.php +++ b/lib/User/Controller/RoleController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Controller; use Da\User\Model\Role; diff --git a/lib/User/Controller/SecurityController.php b/lib/User/Controller/SecurityController.php index cf0f841..aabf320 100644 --- a/lib/User/Controller/SecurityController.php +++ b/lib/User/Controller/SecurityController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Controller; use Da\User\Contracts\AuthClientInterface; diff --git a/lib/User/Controller/SettingsController.php b/lib/User/Controller/SettingsController.php index e03ff29..c231392 100644 --- a/lib/User/Controller/SettingsController.php +++ b/lib/User/Controller/SettingsController.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Controller; use Da\User\Contracts\MailChangeStrategyInterface; diff --git a/lib/User/Event/FormEvent.php b/lib/User/Event/FormEvent.php index 9ba175b..34d2fd8 100644 --- a/lib/User/Event/FormEvent.php +++ b/lib/User/Event/FormEvent.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Event; use yii\base\Event; diff --git a/lib/User/Event/ProfileEvent.php b/lib/User/Event/ProfileEvent.php index a92b02e..7a19f29 100644 --- a/lib/User/Event/ProfileEvent.php +++ b/lib/User/Event/ProfileEvent.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Event; use Da\User\Model\Profile; diff --git a/lib/User/Event/ResetPasswordEvent.php b/lib/User/Event/ResetPasswordEvent.php index 263d9c6..a28436a 100644 --- a/lib/User/Event/ResetPasswordEvent.php +++ b/lib/User/Event/ResetPasswordEvent.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Event; use Da\User\Form\RecoveryForm; diff --git a/lib/User/Event/SocialNetworkAuthEvent.php b/lib/User/Event/SocialNetworkAuthEvent.php index 7b32155..a126e24 100644 --- a/lib/User/Event/SocialNetworkAuthEvent.php +++ b/lib/User/Event/SocialNetworkAuthEvent.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Event; use Da\User\Model\SocialNetworkAccount; diff --git a/lib/User/Event/SocialNetworkConnectEvent.php b/lib/User/Event/SocialNetworkConnectEvent.php index 6321d87..5f28201 100644 --- a/lib/User/Event/SocialNetworkConnectEvent.php +++ b/lib/User/Event/SocialNetworkConnectEvent.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Event; use Da\User\Model\SocialNetworkAccount; diff --git a/lib/User/Event/UserEvent.php b/lib/User/Event/UserEvent.php index 44ba05c..aa429f1 100644 --- a/lib/User/Event/UserEvent.php +++ b/lib/User/Event/UserEvent.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Event; use Da\User\Model\User; diff --git a/lib/User/Factory/AuthItemFactory.php b/lib/User/Factory/AuthItemFactory.php index db34170..a8ad815 100644 --- a/lib/User/Factory/AuthItemFactory.php +++ b/lib/User/Factory/AuthItemFactory.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Factory; use Yii; diff --git a/lib/User/Factory/EmailChangeStrategyFactory.php b/lib/User/Factory/EmailChangeStrategyFactory.php index e5258d2..202df99 100644 --- a/lib/User/Factory/EmailChangeStrategyFactory.php +++ b/lib/User/Factory/EmailChangeStrategyFactory.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Factory; use Da\User\Contracts\MailChangeStrategyInterface; diff --git a/lib/User/Factory/MailFactory.php b/lib/User/Factory/MailFactory.php index 5a4b95c..6f16a37 100644 --- a/lib/User/Factory/MailFactory.php +++ b/lib/User/Factory/MailFactory.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Factory; use Da\User\Model\Token; diff --git a/lib/User/Factory/TokenFactory.php b/lib/User/Factory/TokenFactory.php index c89bf04..0e831a4 100644 --- a/lib/User/Factory/TokenFactory.php +++ b/lib/User/Factory/TokenFactory.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Factory; use Da\User\Model\Token; diff --git a/lib/User/Filter/AccessRuleFilter.php b/lib/User/Filter/AccessRuleFilter.php index abe113b..4b41e17 100644 --- a/lib/User/Filter/AccessRuleFilter.php +++ b/lib/User/Filter/AccessRuleFilter.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Filter; use Da\User\Model\User; diff --git a/lib/User/Form/LoginForm.php b/lib/User/Form/LoginForm.php index f4deb0e..dac46b9 100644 --- a/lib/User/Form/LoginForm.php +++ b/lib/User/Form/LoginForm.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Form; use Da\User\Helper\SecurityHelper; diff --git a/lib/User/Form/RecoveryForm.php b/lib/User/Form/RecoveryForm.php index db141bf..dcb839b 100644 --- a/lib/User/Form/RecoveryForm.php +++ b/lib/User/Form/RecoveryForm.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Form; use Da\User\Query\UserQuery; diff --git a/lib/User/Form/RegistrationForm.php b/lib/User/Form/RegistrationForm.php index 75a04d6..b59f786 100644 --- a/lib/User/Form/RegistrationForm.php +++ b/lib/User/Form/RegistrationForm.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Form; use Da\User\Model\User; diff --git a/lib/User/Form/ResendForm.php b/lib/User/Form/ResendForm.php index ec7fdeb..e0a61c4 100644 --- a/lib/User/Form/ResendForm.php +++ b/lib/User/Form/ResendForm.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Form; use Da\User\Query\UserQuery; diff --git a/lib/User/Form/SettingsForm.php b/lib/User/Form/SettingsForm.php index 7eef5c0..06833fc 100644 --- a/lib/User/Form/SettingsForm.php +++ b/lib/User/Form/SettingsForm.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Form; use Da\User\Factory\EmailChangeStrategyFactory; diff --git a/lib/User/Helper/AuthHelper.php b/lib/User/Helper/AuthHelper.php index 9ab30ae..7c07149 100644 --- a/lib/User/Helper/AuthHelper.php +++ b/lib/User/Helper/AuthHelper.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Helper; use Da\User\Model\AbstractAuthItem; diff --git a/lib/User/Helper/ClassMapHelper.php b/lib/User/Helper/ClassMapHelper.php index 5c0f2d6..681f8ad 100644 --- a/lib/User/Helper/ClassMapHelper.php +++ b/lib/User/Helper/ClassMapHelper.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Helper; /** diff --git a/lib/User/Helper/GravatarHelper.php b/lib/User/Helper/GravatarHelper.php index 467c27b..af7830c 100644 --- a/lib/User/Helper/GravatarHelper.php +++ b/lib/User/Helper/GravatarHelper.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Helper; class GravatarHelper diff --git a/lib/User/Helper/SecurityHelper.php b/lib/User/Helper/SecurityHelper.php index 61a479a..babff35 100644 --- a/lib/User/Helper/SecurityHelper.php +++ b/lib/User/Helper/SecurityHelper.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Helper; use yii\base\Security; diff --git a/lib/User/Helper/TimezoneHelper.php b/lib/User/Helper/TimezoneHelper.php index 79c894a..73d56c7 100644 --- a/lib/User/Helper/TimezoneHelper.php +++ b/lib/User/Helper/TimezoneHelper.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Helper; use DateTimeZone; diff --git a/lib/User/Migration/m000000_000001_create_user_table.php b/lib/User/Migration/m000000_000001_create_user_table.php index 10e303e..7158d11 100644 --- a/lib/User/Migration/m000000_000001_create_user_table.php +++ b/lib/User/Migration/m000000_000001_create_user_table.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Migration; use yii\db\Migration; diff --git a/lib/User/Migration/m000000_000002_create_profile_table.php b/lib/User/Migration/m000000_000002_create_profile_table.php index 6a9c741..18c1a7d 100644 --- a/lib/User/Migration/m000000_000002_create_profile_table.php +++ b/lib/User/Migration/m000000_000002_create_profile_table.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Migration; use yii\db\Migration; diff --git a/lib/User/Migration/m000000_000003_create_social_account_table.php b/lib/User/Migration/m000000_000003_create_social_account_table.php index c90c84f..9ca299e 100644 --- a/lib/User/Migration/m000000_000003_create_social_account_table.php +++ b/lib/User/Migration/m000000_000003_create_social_account_table.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Migration; use yii\db\Migration; diff --git a/lib/User/Migration/m000000_000004_create_token_table.php b/lib/User/Migration/m000000_000004_create_token_table.php index ab7b935..05184e4 100644 --- a/lib/User/Migration/m000000_000004_create_token_table.php +++ b/lib/User/Migration/m000000_000004_create_token_table.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Migration; use yii\db\Migration; diff --git a/lib/User/Model/AbstractAuthItem.php b/lib/User/Model/AbstractAuthItem.php index 461de61..579eb39 100644 --- a/lib/User/Model/AbstractAuthItem.php +++ b/lib/User/Model/AbstractAuthItem.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Model; use Da\User\Traits\AuthManagerTrait; diff --git a/lib/User/Model/Assignment.php b/lib/User/Model/Assignment.php index 2790b82..e319e31 100644 --- a/lib/User/Model/Assignment.php +++ b/lib/User/Model/Assignment.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Model; use Da\User\Traits\AuthManagerTrait; diff --git a/lib/User/Model/Permission.php b/lib/User/Model/Permission.php index d186fe8..9234738 100644 --- a/lib/User/Model/Permission.php +++ b/lib/User/Model/Permission.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Model; use yii\rbac\Item; diff --git a/lib/User/Model/Profile.php b/lib/User/Model/Profile.php index 9c5d3e8..04dd0eb 100644 --- a/lib/User/Model/Profile.php +++ b/lib/User/Model/Profile.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Model; use Da\User\Helper\GravatarHelper; diff --git a/lib/User/Model/Role.php b/lib/User/Model/Role.php index 873f190..a0b01b0 100644 --- a/lib/User/Model/Role.php +++ b/lib/User/Model/Role.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Model; use yii\rbac\Item; diff --git a/lib/User/Model/SocialNetworkAccount.php b/lib/User/Model/SocialNetworkAccount.php index 3214acc..8070c81 100644 --- a/lib/User/Model/SocialNetworkAccount.php +++ b/lib/User/Model/SocialNetworkAccount.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Model; use Da\User\Query\SocialNetworkAccountQuery; diff --git a/lib/User/Model/Token.php b/lib/User/Model/Token.php index 3daaeef..e0c7aab 100644 --- a/lib/User/Model/Token.php +++ b/lib/User/Model/Token.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Model; use Da\User\Helper\SecurityHelper; diff --git a/lib/User/Model/User.php b/lib/User/Model/User.php index ee103e1..260383b 100644 --- a/lib/User/Model/User.php +++ b/lib/User/Model/User.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Model; use Da\User\Helper\SecurityHelper; diff --git a/lib/User/Module.php b/lib/User/Module.php index 69f1cf9..e799753 100644 --- a/lib/User/Module.php +++ b/lib/User/Module.php @@ -1,10 +1,20 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User; use Da\User\Contracts\MailChangeStrategyInterface; +use yii\base\Module as BaseModule; -class Module extends \yii\base\Module +class Module extends BaseModule { /** * @var bool whether to allow registration process or not diff --git a/lib/User/Query/ProfileQuery.php b/lib/User/Query/ProfileQuery.php index 6e62d1c..33b9155 100644 --- a/lib/User/Query/ProfileQuery.php +++ b/lib/User/Query/ProfileQuery.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Query; use yii\db\ActiveQuery; diff --git a/lib/User/Query/SocialNetworkAccountQuery.php b/lib/User/Query/SocialNetworkAccountQuery.php index 5f8d5a2..8ca2843 100644 --- a/lib/User/Query/SocialNetworkAccountQuery.php +++ b/lib/User/Query/SocialNetworkAccountQuery.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Query; use Da\User\Contracts\AuthClientInterface; diff --git a/lib/User/Query/TokenQuery.php b/lib/User/Query/TokenQuery.php index ed69ca6..2acc05e 100644 --- a/lib/User/Query/TokenQuery.php +++ b/lib/User/Query/TokenQuery.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Query; use Da\User\Model\Token; diff --git a/lib/User/Query/UserQuery.php b/lib/User/Query/UserQuery.php index 227a12f..39d7278 100644 --- a/lib/User/Query/UserQuery.php +++ b/lib/User/Query/UserQuery.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Query; use yii\db\ActiveQuery; diff --git a/lib/User/Search/AbstractAuthItemSearch.php b/lib/User/Search/AbstractAuthItemSearch.php index 26bb322..be7b8f2 100644 --- a/lib/User/Search/AbstractAuthItemSearch.php +++ b/lib/User/Search/AbstractAuthItemSearch.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Search; use Da\User\Traits\AuthManagerTrait; diff --git a/lib/User/Search/PermissionSearch.php b/lib/User/Search/PermissionSearch.php index 2414116..93026bb 100644 --- a/lib/User/Search/PermissionSearch.php +++ b/lib/User/Search/PermissionSearch.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Search; use yii\rbac\Item; diff --git a/lib/User/Search/RoleSearch.php b/lib/User/Search/RoleSearch.php index 0dbe7a7..3418e48 100644 --- a/lib/User/Search/RoleSearch.php +++ b/lib/User/Search/RoleSearch.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Search; use yii\rbac\Item; diff --git a/lib/User/Search/UserSearch.php b/lib/User/Search/UserSearch.php index 4d82908..9d2b779 100644 --- a/lib/User/Search/UserSearch.php +++ b/lib/User/Search/UserSearch.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Search; use Da\User\Query\UserQuery; diff --git a/lib/User/Service/AuthItemEditionService.php b/lib/User/Service/AuthItemEditionService.php index 07244dc..b2c8269 100644 --- a/lib/User/Service/AuthItemEditionService.php +++ b/lib/User/Service/AuthItemEditionService.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Service; use Da\User\Contracts\ServiceInterface; diff --git a/lib/User/Service/ResendConfirmationService.php b/lib/User/Service/ResendConfirmationService.php index 81b8fb5..119d495 100644 --- a/lib/User/Service/ResendConfirmationService.php +++ b/lib/User/Service/ResendConfirmationService.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Service; use Da\User\Contracts\ServiceInterface; diff --git a/lib/User/Service/ResetPasswordService.php b/lib/User/Service/ResetPasswordService.php index 07baaf9..3fed1f7 100644 --- a/lib/User/Service/ResetPasswordService.php +++ b/lib/User/Service/ResetPasswordService.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Service; use Da\User\Contracts\ServiceInterface; diff --git a/lib/User/Service/SocialNetworkAccountConnectService.php b/lib/User/Service/SocialNetworkAccountConnectService.php index 54be914..3758910 100644 --- a/lib/User/Service/SocialNetworkAccountConnectService.php +++ b/lib/User/Service/SocialNetworkAccountConnectService.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Service; use Da\User\Contracts\AuthClientInterface; diff --git a/lib/User/Service/SocialNetworkAuthenticateService.php b/lib/User/Service/SocialNetworkAuthenticateService.php index f027773..1597b56 100644 --- a/lib/User/Service/SocialNetworkAuthenticateService.php +++ b/lib/User/Service/SocialNetworkAuthenticateService.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Service; use Da\User\Contracts\AuthClientInterface; diff --git a/lib/User/Service/UpdateAuthAssignmentsService.php b/lib/User/Service/UpdateAuthAssignmentsService.php index 9091cb7..9d2cae0 100644 --- a/lib/User/Service/UpdateAuthAssignmentsService.php +++ b/lib/User/Service/UpdateAuthAssignmentsService.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Service; use Da\User\Contracts\ServiceInterface; diff --git a/lib/User/Service/UserBlockService.php b/lib/User/Service/UserBlockService.php index 022b6e5..9414add 100644 --- a/lib/User/Service/UserBlockService.php +++ b/lib/User/Service/UserBlockService.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Service; use Da\User\Contracts\ServiceInterface; diff --git a/lib/User/Service/UserConfirmationService.php b/lib/User/Service/UserConfirmationService.php index 304e781..8580040 100644 --- a/lib/User/Service/UserConfirmationService.php +++ b/lib/User/Service/UserConfirmationService.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Service; use Da\User\Contracts\ServiceInterface; diff --git a/lib/User/Service/UserCreateService.php b/lib/User/Service/UserCreateService.php index 6e5e7ed..162023a 100644 --- a/lib/User/Service/UserCreateService.php +++ b/lib/User/Service/UserCreateService.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Service; use Da\User\Contracts\ServiceInterface; diff --git a/lib/User/Service/UserRegisterService.php b/lib/User/Service/UserRegisterService.php index 99f07bc..704c5c7 100644 --- a/lib/User/Service/UserRegisterService.php +++ b/lib/User/Service/UserRegisterService.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Service; use Da\User\Contracts\ServiceInterface; diff --git a/lib/User/Strategy/DefaultEmailChangeStrategy.php b/lib/User/Strategy/DefaultEmailChangeStrategy.php index 7962a9f..5c62aa5 100644 --- a/lib/User/Strategy/DefaultEmailChangeStrategy.php +++ b/lib/User/Strategy/DefaultEmailChangeStrategy.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Strategy; use Da\User\Contracts\MailChangeStrategyInterface; diff --git a/lib/User/Strategy/InsecureEmailChangeStrategy.php b/lib/User/Strategy/InsecureEmailChangeStrategy.php index 0356978..3e67bb0 100644 --- a/lib/User/Strategy/InsecureEmailChangeStrategy.php +++ b/lib/User/Strategy/InsecureEmailChangeStrategy.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Strategy; use Da\User\Contracts\MailChangeStrategyInterface; diff --git a/lib/User/Strategy/SecureEmailChangeStrategy.php b/lib/User/Strategy/SecureEmailChangeStrategy.php index a2ae9cc..bd5dadb 100644 --- a/lib/User/Strategy/SecureEmailChangeStrategy.php +++ b/lib/User/Strategy/SecureEmailChangeStrategy.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Strategy; use Da\User\Contracts\MailChangeStrategyInterface; diff --git a/lib/User/Traits/AuthManagerTrait.php b/lib/User/Traits/AuthManagerTrait.php index 2d2b02b..a593006 100644 --- a/lib/User/Traits/AuthManagerTrait.php +++ b/lib/User/Traits/AuthManagerTrait.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Traits; use Da\User\Component\AuthDbManagerComponent; diff --git a/lib/User/Traits/ContainerTrait.php b/lib/User/Traits/ContainerTrait.php index dbeb0e1..4b0e754 100644 --- a/lib/User/Traits/ContainerTrait.php +++ b/lib/User/Traits/ContainerTrait.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Traits; use Da\User\Helper\AuthHelper; diff --git a/lib/User/Traits/ModuleTrait.php b/lib/User/Traits/ModuleTrait.php index 5fb74c4..73dbeaa 100644 --- a/lib/User/Traits/ModuleTrait.php +++ b/lib/User/Traits/ModuleTrait.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Traits; use Da\User\Module; diff --git a/lib/User/Validator/AjaxRequestModelValidator.php b/lib/User/Validator/AjaxRequestModelValidator.php index 4bcde30..2a8f32f 100644 --- a/lib/User/Validator/AjaxRequestModelValidator.php +++ b/lib/User/Validator/AjaxRequestModelValidator.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Validator; use Da\User\Contracts\ValidatorInterface; diff --git a/lib/User/Validator/RbacItemsValidator.php b/lib/User/Validator/RbacItemsValidator.php index 047bf09..d0188e0 100644 --- a/lib/User/Validator/RbacItemsValidator.php +++ b/lib/User/Validator/RbacItemsValidator.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Validator; use Da\User\Traits\AuthManagerTrait; diff --git a/lib/User/Validator/RbacRuleValidator.php b/lib/User/Validator/RbacRuleValidator.php index f97c194..dbe1434 100644 --- a/lib/User/Validator/RbacRuleValidator.php +++ b/lib/User/Validator/RbacRuleValidator.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Validator; use ReflectionClass; diff --git a/lib/User/Validator/TimeZoneValidator.php b/lib/User/Validator/TimeZoneValidator.php index 1ec1bbb..6f91641 100644 --- a/lib/User/Validator/TimeZoneValidator.php +++ b/lib/User/Validator/TimeZoneValidator.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Validator; use Da\User\Contracts\ValidatorInterface; diff --git a/lib/User/Widget/AssignmentsWidget.php b/lib/User/Widget/AssignmentsWidget.php index 46b4262..3876a35 100644 --- a/lib/User/Widget/AssignmentsWidget.php +++ b/lib/User/Widget/AssignmentsWidget.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Widget; use Da\User\Model\Assignment; diff --git a/lib/User/Widget/ConnectWidget.php b/lib/User/Widget/ConnectWidget.php index 825387e..d36f093 100644 --- a/lib/User/Widget/ConnectWidget.php +++ b/lib/User/Widget/ConnectWidget.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Widget; use Yii; diff --git a/lib/User/Widget/LoginWidget.php b/lib/User/Widget/LoginWidget.php index 375a093..5b05288 100644 --- a/lib/User/Widget/LoginWidget.php +++ b/lib/User/Widget/LoginWidget.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + namespace Da\User\Widget; use Da\User\Form\LoginForm; diff --git a/lib/User/resources/i18n/message.php b/lib/User/resources/i18n/message.php index 7a70dab..adecd66 100644 --- a/lib/User/resources/i18n/message.php +++ b/lib/User/resources/i18n/message.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + return [ 'sourcePath' => __DIR__.'/../User', 'messagePath' => __DIR__, diff --git a/lib/User/resources/views/admin/_account.php b/lib/User/resources/views/admin/_account.php index 0e31ee5..43aed75 100644 --- a/lib/User/resources/views/admin/_account.php +++ b/lib/User/resources/views/admin/_account.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\bootstrap\ActiveForm; use yii\helpers\Html; diff --git a/lib/User/resources/views/admin/_assignments.php b/lib/User/resources/views/admin/_assignments.php index d031933..8a865ab 100644 --- a/lib/User/resources/views/admin/_assignments.php +++ b/lib/User/resources/views/admin/_assignments.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use Da\User\Widget\AssignmentsWidget; /* diff --git a/lib/User/resources/views/admin/_info.php b/lib/User/resources/views/admin/_info.php index ce1a1ed..72e16cc 100644 --- a/lib/User/resources/views/admin/_info.php +++ b/lib/User/resources/views/admin/_info.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var yii\web\View * @var \Da\User\Model\User $user diff --git a/lib/User/resources/views/admin/_profile.php b/lib/User/resources/views/admin/_profile.php index e24ca84..8cf9cd3 100644 --- a/lib/User/resources/views/admin/_profile.php +++ b/lib/User/resources/views/admin/_profile.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\bootstrap\ActiveForm; use yii\helpers\Html; diff --git a/lib/User/resources/views/admin/_user.php b/lib/User/resources/views/admin/_user.php index 5c6d1fb..4dbf4d9 100644 --- a/lib/User/resources/views/admin/_user.php +++ b/lib/User/resources/views/admin/_user.php @@ -1,4 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var yii\widgets\ActiveForm * @var \Da\User\Model\User $user diff --git a/lib/User/resources/views/admin/create.php b/lib/User/resources/views/admin/create.php index e80a12a..eb1e46e 100644 --- a/lib/User/resources/views/admin/create.php +++ b/lib/User/resources/views/admin/create.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\bootstrap\ActiveForm; use yii\bootstrap\Nav; use yii\helpers\Html; diff --git a/lib/User/resources/views/admin/index.php b/lib/User/resources/views/admin/index.php index 0aba39d..49f6c79 100644 --- a/lib/User/resources/views/admin/index.php +++ b/lib/User/resources/views/admin/index.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use Da\User\Search\UserSearch; use yii\data\ActiveDataProvider; use yii\grid\GridView; diff --git a/lib/User/resources/views/admin/update.php b/lib/User/resources/views/admin/update.php index 37a670f..3e14d55 100644 --- a/lib/User/resources/views/admin/update.php +++ b/lib/User/resources/views/admin/update.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use Da\User\Model\User; use yii\bootstrap\Nav; use yii\web\View; diff --git a/lib/User/resources/views/mail/confirmation.php b/lib/User/resources/views/mail/confirmation.php index d9784b7..751d583 100644 --- a/lib/User/resources/views/mail/confirmation.php +++ b/lib/User/resources/views/mail/confirmation.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; /* diff --git a/lib/User/resources/views/mail/layouts/html.php b/lib/User/resources/views/mail/layouts/html.php index 6b8d772..92d359c 100644 --- a/lib/User/resources/views/mail/layouts/html.php +++ b/lib/User/resources/views/mail/layouts/html.php @@ -1,4 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var \yii\web\View * @var yii\mail\BaseMessage $content diff --git a/lib/User/resources/views/mail/layouts/text.php b/lib/User/resources/views/mail/layouts/text.php index 189336f..8982930 100644 --- a/lib/User/resources/views/mail/layouts/text.php +++ b/lib/User/resources/views/mail/layouts/text.php @@ -1,4 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var string main view render result */ diff --git a/lib/User/resources/views/mail/reconfirmation.php b/lib/User/resources/views/mail/reconfirmation.php index b1abc1c..ed59c02 100644 --- a/lib/User/resources/views/mail/reconfirmation.php +++ b/lib/User/resources/views/mail/reconfirmation.php @@ -1,4 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; /* diff --git a/lib/User/resources/views/mail/recovery.php b/lib/User/resources/views/mail/recovery.php index c37548e..7a91379 100644 --- a/lib/User/resources/views/mail/recovery.php +++ b/lib/User/resources/views/mail/recovery.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; /* diff --git a/lib/User/resources/views/mail/text/confirmation.php b/lib/User/resources/views/mail/text/confirmation.php index a697849..abb9f64 100644 --- a/lib/User/resources/views/mail/text/confirmation.php +++ b/lib/User/resources/views/mail/text/confirmation.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var \Da\User\Model\User * @var \Da\User\Model\Token $token diff --git a/lib/User/resources/views/mail/text/reconfirmation.php b/lib/User/resources/views/mail/text/reconfirmation.php index 1b19562..2eb1ee3 100644 --- a/lib/User/resources/views/mail/text/reconfirmation.php +++ b/lib/User/resources/views/mail/text/reconfirmation.php @@ -1,4 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var \Da\User\Model\Token */ diff --git a/lib/User/resources/views/mail/text/recovery.php b/lib/User/resources/views/mail/text/recovery.php index 5bb7c6b..c2100be 100644 --- a/lib/User/resources/views/mail/text/recovery.php +++ b/lib/User/resources/views/mail/text/recovery.php @@ -1,4 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var \Da\User\Model\User * @var \Da\User\Model\Token $token diff --git a/lib/User/resources/views/mail/text/welcome.php b/lib/User/resources/views/mail/text/welcome.php index 44a3ae4..cef15c0 100644 --- a/lib/User/resources/views/mail/text/welcome.php +++ b/lib/User/resources/views/mail/text/welcome.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var \Da\User\Model\User * @var \Da\User\Model\Token $token diff --git a/lib/User/resources/views/mail/welcome.php b/lib/User/resources/views/mail/welcome.php index 97b1c37..8eec491 100644 --- a/lib/User/resources/views/mail/welcome.php +++ b/lib/User/resources/views/mail/welcome.php @@ -1,4 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; /* diff --git a/lib/User/resources/views/permission/_form.php b/lib/User/resources/views/permission/_form.php index d37106c..a16332d 100644 --- a/lib/User/resources/views/permission/_form.php +++ b/lib/User/resources/views/permission/_form.php @@ -1,10 +1,20 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var yii\web\View * @var $model \Da\User\Model\Permission * @var $unassignedItems string[] */ + use kartik\select2\Select2; use yii\widgets\ActiveForm; use yii\helpers\Html; diff --git a/lib/User/resources/views/permission/create.php b/lib/User/resources/views/permission/create.php index 5eb8ce8..026614a 100644 --- a/lib/User/resources/views/permission/create.php +++ b/lib/User/resources/views/permission/create.php @@ -1,10 +1,20 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var \Da\User\Model\Permission * @var $this yii\web\View * @var $unassignedItems string[] */ + $this->title = Yii::t('user', 'Create new permission'); $this->params['breadcrumbs'][] = $this->title; diff --git a/lib/User/resources/views/permission/index.php b/lib/User/resources/views/permission/index.php index b80dccb..63734e3 100644 --- a/lib/User/resources/views/permission/index.php +++ b/lib/User/resources/views/permission/index.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var array * @var $this yii\web\View diff --git a/lib/User/resources/views/permission/update.php b/lib/User/resources/views/permission/update.php index e5034c3..6ad723d 100644 --- a/lib/User/resources/views/permission/update.php +++ b/lib/User/resources/views/permission/update.php @@ -1,10 +1,20 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var \Da\User\Model\Permission * @var $this yii\web\View * @var $unassignedItems string[] */ + $this->title = Yii::t('user', 'Update permission'); $this->params['breadcrumbs'][] = $this->title; diff --git a/lib/User/resources/views/profile/show.php b/lib/User/resources/views/profile/show.php index 7a67cac..59df7f9 100644 --- a/lib/User/resources/views/profile/show.php +++ b/lib/User/resources/views/profile/show.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; /* diff --git a/lib/User/resources/views/recovery/request.php b/lib/User/resources/views/recovery/request.php index 02046a8..00ad29c 100644 --- a/lib/User/resources/views/recovery/request.php +++ b/lib/User/resources/views/recovery/request.php @@ -1,4 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; use yii\widgets\ActiveForm; diff --git a/lib/User/resources/views/recovery/reset.php b/lib/User/resources/views/recovery/reset.php index ba12b13..8084b41 100644 --- a/lib/User/resources/views/recovery/reset.php +++ b/lib/User/resources/views/recovery/reset.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; use yii\widgets\ActiveForm; diff --git a/lib/User/resources/views/registration/connect.php b/lib/User/resources/views/registration/connect.php index b5e4d4e..eadbddb 100644 --- a/lib/User/resources/views/registration/connect.php +++ b/lib/User/resources/views/registration/connect.php @@ -1,4 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; use yii\widgets\ActiveForm; diff --git a/lib/User/resources/views/registration/register.php b/lib/User/resources/views/registration/register.php index d40fa72..4d173e0 100644 --- a/lib/User/resources/views/registration/register.php +++ b/lib/User/resources/views/registration/register.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; use yii\widgets\ActiveForm; diff --git a/lib/User/resources/views/registration/resend.php b/lib/User/resources/views/registration/resend.php index 464c875..e72ee66 100644 --- a/lib/User/resources/views/registration/resend.php +++ b/lib/User/resources/views/registration/resend.php @@ -1,4 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; use yii\widgets\ActiveForm; diff --git a/lib/User/resources/views/role/_form.php b/lib/User/resources/views/role/_form.php index 6760e45..ea5295b 100644 --- a/lib/User/resources/views/role/_form.php +++ b/lib/User/resources/views/role/_form.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var yii\web\View * @var $model \Da\User\Model\Role diff --git a/lib/User/resources/views/role/create.php b/lib/User/resources/views/role/create.php index 7fa028f..b037d2d 100644 --- a/lib/User/resources/views/role/create.php +++ b/lib/User/resources/views/role/create.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var \Da\User\Model\Role * @var $this yii\web\View diff --git a/lib/User/resources/views/role/index.php b/lib/User/resources/views/role/index.php index 1cb33a9..8683eb9 100644 --- a/lib/User/resources/views/role/index.php +++ b/lib/User/resources/views/role/index.php @@ -1,4 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\grid\ActionColumn; use yii\grid\GridView; use yii\helpers\Url; diff --git a/lib/User/resources/views/role/update.php b/lib/User/resources/views/role/update.php index d2172e9..0dbe1cf 100644 --- a/lib/User/resources/views/role/update.php +++ b/lib/User/resources/views/role/update.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var \Da\User\Model\Role * @var $this yii\web\View diff --git a/lib/User/resources/views/security/login.php b/lib/User/resources/views/security/login.php index 27e94ac..3ab096c 100644 --- a/lib/User/resources/views/security/login.php +++ b/lib/User/resources/views/security/login.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use Da\User\Widget\ConnectWidget; use yii\helpers\Html; use yii\widgets\ActiveForm; diff --git a/lib/User/resources/views/settings/_menu.php b/lib/User/resources/views/settings/_menu.php index 8c5d25f..c575bbf 100644 --- a/lib/User/resources/views/settings/_menu.php +++ b/lib/User/resources/views/settings/_menu.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; use yii\widgets\Menu; diff --git a/lib/User/resources/views/settings/account.php b/lib/User/resources/views/settings/account.php index b5abe68..f8ed092 100644 --- a/lib/User/resources/views/settings/account.php +++ b/lib/User/resources/views/settings/account.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; use yii\widgets\ActiveForm; diff --git a/lib/User/resources/views/settings/networks.php b/lib/User/resources/views/settings/networks.php index 47cd4da..747ece6 100644 --- a/lib/User/resources/views/settings/networks.php +++ b/lib/User/resources/views/settings/networks.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use Da\User\Widget\ConnectWidget; use yii\helpers\Html; diff --git a/lib/User/resources/views/settings/profile.php b/lib/User/resources/views/settings/profile.php index 03fb348..4bf4a02 100644 --- a/lib/User/resources/views/settings/profile.php +++ b/lib/User/resources/views/settings/profile.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; use yii\widgets\ActiveForm; use yii\helpers\ArrayHelper; diff --git a/lib/User/resources/views/shared/_alert.php b/lib/User/resources/views/shared/_alert.php index 1a19104..2d5c859 100644 --- a/lib/User/resources/views/shared/_alert.php +++ b/lib/User/resources/views/shared/_alert.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\bootstrap\Alert; /* diff --git a/lib/User/resources/views/shared/_menu.php b/lib/User/resources/views/shared/_menu.php index 779cfeb..796683f 100644 --- a/lib/User/resources/views/shared/_menu.php +++ b/lib/User/resources/views/shared/_menu.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\bootstrap\Nav; ?> diff --git a/lib/User/resources/views/shared/admin_layout.php b/lib/User/resources/views/shared/admin_layout.php index de94da7..adf1cba 100644 --- a/lib/User/resources/views/shared/admin_layout.php +++ b/lib/User/resources/views/shared/admin_layout.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use yii\helpers\Html; ?> diff --git a/lib/User/resources/views/shared/message.php b/lib/User/resources/views/shared/message.php index b74b998..a35d8f6 100644 --- a/lib/User/resources/views/shared/message.php +++ b/lib/User/resources/views/shared/message.php @@ -1,10 +1,20 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + /** * @var yii\web\View * @var \Da\User\Module $module * @var string $title */ + $this->title = $title; ?> diff --git a/lib/User/resources/views/widgets/assignments/form.php b/lib/User/resources/views/widgets/assignments/form.php index b5bc910..7c5f9bb 100644 --- a/lib/User/resources/views/widgets/assignments/form.php +++ b/lib/User/resources/views/widgets/assignments/form.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + use kartik\select2\Select2; use yii\bootstrap\Alert; use yii\helpers\Html; diff --git a/lib/User/resources/views/widgets/login/login.php b/lib/User/resources/views/widgets/login/login.php index 5a0fc1c..3516a50 100644 --- a/lib/User/resources/views/widgets/login/login.php +++ b/lib/User/resources/views/widgets/login/login.php @@ -1,12 +1,12 @@ + * (c) 2amigOS! * - * For the full copyright and license information, please view the LICENSE.md - * file that was distributed with this source code. + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. */ use yii\helpers\Url; @@ -14,10 +14,10 @@ use yii\widgets\ActiveForm; use yii\helpers\Html; /* - * @var yii\web\View $this - * @var yii\widgets\ActiveForm $form - * @var dektrium\user\models\LoginForm $model - * @var string $action + * @var yii\web\View $this + * @var yii\widgets\ActiveForm $form + * @var Da\User\Form\LoginForm $model + * @var string $action */ ?> diff --git a/tests/_app/config/.gitignore b/tests/_app/config/.gitignore new file mode 100644 index 0000000..436869a --- /dev/null +++ b/tests/_app/config/.gitignore @@ -0,0 +1 @@ +db.local.php