@@ -389,7 +389,6 @@ |
||
389 | 389 | * Set the email config array we are going to be sending. |
390 | 390 | * |
391 | 391 | * @todo deprecated move to notifications |
392 | - * @param String $emailAction |
|
393 | 392 | * @param Users $user |
394 | 393 | * @deprecated version 1 |
395 | 394 | * @return void |
@@ -4,30 +4,30 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Api\Controllers; |
6 | 6 | |
7 | -use Canvas\Models\Users; |
|
7 | +use Baka\Auth\Models\Sessions; |
|
8 | +use Baka\Auth\Models\Users as BakaUsers; |
|
9 | +use Canvas\Auth\Factory; |
|
10 | +use Canvas\Exception\ModelException; |
|
11 | +use Canvas\Http\Exception\InternalServerErrorException; |
|
12 | +use Canvas\Http\Exception\NotFoundException; |
|
8 | 13 | use Canvas\Models\Sources; |
9 | 14 | use Canvas\Models\UserLinkedSources; |
10 | -use Canvas\Exception\ModelException; |
|
11 | -use Baka\Auth\Models\Users as BakaUsers; |
|
15 | +use Canvas\Models\Users; |
|
16 | +use Canvas\Notifications\PasswordUpdate; |
|
17 | +use Canvas\Notifications\ResetPassword; |
|
18 | +use Canvas\Notifications\Signup; |
|
19 | +use Canvas\Notifications\UpdateEmail; |
|
12 | 20 | use Canvas\Traits\AuthTrait; |
13 | 21 | use Canvas\Traits\SocialLoginTrait; |
14 | -use Canvas\Http\Exception\NotFoundException; |
|
22 | +use Canvas\Traits\TokenTrait; |
|
23 | +use Canvas\Validation as CanvasValidation; |
|
24 | +use Canvas\Validations\PasswordValidation; |
|
15 | 25 | use Exception; |
16 | 26 | use Phalcon\Http\Response; |
17 | 27 | use Phalcon\Validation\Validator\Confirmation; |
18 | 28 | use Phalcon\Validation\Validator\Email as EmailValidator; |
19 | 29 | use Phalcon\Validation\Validator\PresenceOf; |
20 | 30 | use Phalcon\Validation\Validator\StringLength; |
21 | -use Baka\Auth\Models\Sessions; |
|
22 | -use Canvas\Auth\Factory; |
|
23 | -use Canvas\Http\Exception\InternalServerErrorException; |
|
24 | -use Canvas\Validation as CanvasValidation; |
|
25 | -use Canvas\Notifications\ResetPassword; |
|
26 | -use Canvas\Notifications\PasswordUpdate; |
|
27 | -use Canvas\Notifications\Signup; |
|
28 | -use Canvas\Notifications\UpdateEmail; |
|
29 | -use Canvas\Validations\PasswordValidation; |
|
30 | -use Canvas\Traits\TokenTrait; |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * Class AuthController. |
@@ -4,13 +4,13 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Listener; |
6 | 6 | |
7 | -use Phalcon\Events\Event; |
|
8 | -use Canvas\Models\Users; |
|
9 | -use Canvas\Models\Companies; |
|
10 | 7 | use Canvas\Auth\App; |
11 | 8 | use Canvas\Models\Apps; |
9 | +use Canvas\Models\Companies; |
|
12 | 10 | use Canvas\Models\Roles; |
11 | +use Canvas\Models\Users; |
|
13 | 12 | use Canvas\Models\UsersInvite; |
13 | +use Phalcon\Events\Event; |
|
14 | 14 | |
15 | 15 | class User |
16 | 16 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Canvas\Handlers; |
4 | 4 | |
5 | -use Namshi\Notificator\Notification\Handler\HandlerInterface; |
|
6 | 5 | use Canvas\Contracts\Notifications\EmailNotificationsInterface as EmailNotificationsContract; |
7 | 6 | use Namshi\Notificator\NotificationInterface; |
7 | +use Namshi\Notificator\Notification\Handler\HandlerInterface; |
|
8 | 8 | use Phalcon\Di; |
9 | 9 | |
10 | 10 | class EmailNotifications implements HandlerInterface |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Canvas\Handlers; |
4 | 4 | |
5 | -use Namshi\Notificator\Notification\Handler\HandlerInterface; |
|
6 | 5 | use Canvas\Contracts\Notifications\PushNotificationsInterface as PushNotificationsContract; |
7 | 6 | use Namshi\Notificator\NotificationInterface; |
7 | +use Namshi\Notificator\Notification\Handler\HandlerInterface; |
|
8 | 8 | use Phalcon\Di; |
9 | 9 | |
10 | 10 | class PushNotifications implements HandlerInterface |
@@ -160,7 +160,6 @@ |
||
160 | 160 | * Get the value of the settins by it key. |
161 | 161 | * |
162 | 162 | * @param string $key |
163 | - * @param string $value |
|
164 | 163 | */ |
165 | 164 | public function get(string $key) : ?string |
166 | 165 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | namespace Canvas\Models; |
5 | 5 | |
6 | -use Canvas\Exception\ModelException; |
|
7 | 6 | use Phalcon\Di; |
8 | 7 | |
9 | 8 | /** |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Traits; |
6 | 6 | |
7 | -use Canvas\Models\Roles; |
|
8 | -use Canvas\Models\UserRoles; |
|
9 | 7 | use Canvas\Http\Exception\InternalServerErrorException; |
10 | 8 | use Canvas\Http\Exception\UnauthorizedException; |
9 | +use Canvas\Models\Roles; |
|
10 | +use Canvas\Models\UserRoles; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Trait FractalTrait. |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | use Baka\Database\Contracts\HashTableTrait; |
8 | 8 | use Canvas\Http\Exception\NotFoundException; |
9 | -use Phalcon\Di; |
|
10 | 9 | use Exception; |
10 | +use Phalcon\Di; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Classs for FileSystem. |
@@ -4,14 +4,14 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Traits; |
6 | 6 | |
7 | -use Phalcon\Http\Response; |
|
8 | -use Phalcon\Validation; |
|
9 | -use Phalcon\Validation\Validator\File as FileValidator; |
|
10 | -use Canvas\Models\FileSystem; |
|
11 | 7 | use Canvas\Filesystem\Helper; |
12 | 8 | use Canvas\Http\Exception\UnprocessableEntityException; |
13 | -use Canvas\Models\FileSystemSettings; |
|
9 | +use Canvas\Models\FileSystem; |
|
14 | 10 | use Canvas\Models\FileSystemEntities; |
11 | +use Canvas\Models\FileSystemSettings; |
|
12 | +use Phalcon\Http\Response; |
|
13 | +use Phalcon\Validation; |
|
14 | +use Phalcon\Validation\Validator\File as FileValidator; |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Trait ResponseTrait. |
@@ -4,10 +4,9 @@ |
||
4 | 4 | |
5 | 5 | namespace Canvas\Models; |
6 | 6 | |
7 | -use Phalcon\Di; |
|
8 | -use Canvas\Exception\ModelException; |
|
9 | 7 | use Baka\ASDecoder; |
10 | 8 | use Canvas\Http\Exception\InternalServerErrorException; |
9 | +use Phalcon\Di; |
|
11 | 10 | |
12 | 11 | |
13 | 12 | /** |