@@ -11,5 +11,5 @@ |
||
11 | 11 | 'response_timeout' => env('PL_MAIL_SMTP_RESPONSE_TIMEOUT', 10, 'int'), |
12 | 12 | 'username' => env('PL_MAIL_SMTP_USERNAME', ''), |
13 | 13 | 'password' => env('PL_MAIL_SMTP_PASSWORD', ''), |
14 | - ], |
|
14 | + ], |
|
15 | 15 | ]; |
@@ -14,6 +14,6 @@ |
||
14 | 14 | CsrfMiddleware::class, |
15 | 15 | AuthenticationMiddleware::class, |
16 | 16 | AuthorizationMiddleware::class, |
17 | - // SecurityPolicyMiddleware::class, |
|
17 | + // SecurityPolicyMiddleware::class, |
|
18 | 18 | RouteDispatcherMiddleware::class, |
19 | 19 | ]; |
@@ -22,10 +22,10 @@ discard block |
||
22 | 22 | class AuthAction extends BaseAction |
23 | 23 | { |
24 | 24 | /** |
25 | - * Create new instance |
|
26 | - * @param AuthenticationInterface $authentication |
|
27 | - * @param ActionHelper<T> $actionHelper |
|
28 | - */ |
|
25 | + * Create new instance |
|
26 | + * @param AuthenticationInterface $authentication |
|
27 | + * @param ActionHelper<T> $actionHelper |
|
28 | + */ |
|
29 | 29 | public function __construct( |
30 | 30 | protected AuthenticationInterface $authentication, |
31 | 31 | ActionHelper $actionHelper, |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | - * {@inheritdoc} |
|
38 | - */ |
|
37 | + * {@inheritdoc} |
|
38 | + */ |
|
39 | 39 | public function respond(): ResponseInterface |
40 | 40 | { |
41 | 41 | $this->setView('user/login'); |
@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | class LogoutAction extends BaseAction |
19 | 19 | { |
20 | 20 | /** |
21 | - * Create new instance |
|
22 | - * @param AuthenticationInterface $authentication |
|
23 | - * @param ActionHelper<T> $actionHelper |
|
24 | - */ |
|
21 | + * Create new instance |
|
22 | + * @param AuthenticationInterface $authentication |
|
23 | + * @param ActionHelper<T> $actionHelper |
|
24 | + */ |
|
25 | 25 | public function __construct( |
26 | 26 | protected AuthenticationInterface $authentication, |
27 | 27 | ActionHelper $actionHelper, |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
33 | - * {@inheritdoc} |
|
34 | - */ |
|
33 | + * {@inheritdoc} |
|
34 | + */ |
|
35 | 35 | public function respond(): ResponseInterface |
36 | 36 | { |
37 | 37 | $this->authentication->logout(); |
@@ -19,18 +19,18 @@ discard block |
||
19 | 19 | class RoleValidator extends AbstractValidator |
20 | 20 | { |
21 | 21 | /** |
22 | - * Create new instance |
|
23 | - * @param RoleParam<TEntity> $param |
|
24 | - * @param Lang $lang |
|
25 | - */ |
|
22 | + * Create new instance |
|
23 | + * @param RoleParam<TEntity> $param |
|
24 | + * @param Lang $lang |
|
25 | + */ |
|
26 | 26 | public function __construct(protected RoleParam $param, Lang $lang) |
27 | 27 | { |
28 | 28 | parent::__construct($lang); |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * {@inheritdoc} |
|
33 | - */ |
|
32 | + * {@inheritdoc} |
|
33 | + */ |
|
34 | 34 | public function setValidationData(): void |
35 | 35 | { |
36 | 36 | $this->addData('name', $this->param->getName()); |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * {@inheritdoc} |
|
42 | - */ |
|
41 | + * {@inheritdoc} |
|
42 | + */ |
|
43 | 43 | public function setValidationRules(): void |
44 | 44 | { |
45 | 45 | $this->addRules('name', [ |
@@ -20,18 +20,18 @@ discard block |
||
20 | 20 | class AuthValidator extends AbstractValidator |
21 | 21 | { |
22 | 22 | /** |
23 | - * Create new instance |
|
24 | - * @param AuthParam<TEntity> $param |
|
25 | - * @param Lang $lang |
|
26 | - */ |
|
23 | + * Create new instance |
|
24 | + * @param AuthParam<TEntity> $param |
|
25 | + * @param Lang $lang |
|
26 | + */ |
|
27 | 27 | public function __construct(protected AuthParam $param, Lang $lang) |
28 | 28 | { |
29 | 29 | parent::__construct($lang); |
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
33 | - * {@inheritdoc} |
|
34 | - */ |
|
33 | + * {@inheritdoc} |
|
34 | + */ |
|
35 | 35 | public function setValidationData(): void |
36 | 36 | { |
37 | 37 | $this->addData('username', $this->param->getUsername()); |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * {@inheritdoc} |
|
43 | - */ |
|
42 | + * {@inheritdoc} |
|
43 | + */ |
|
44 | 44 | public function setValidationRules(): void |
45 | 45 | { |
46 | 46 | $this->addRules('username', [ |
@@ -24,11 +24,11 @@ discard block |
||
24 | 24 | class UserValidator extends AbstractValidator |
25 | 25 | { |
26 | 26 | /** |
27 | - * Create new instance |
|
28 | - * @param UserParam<TEntity> $param |
|
29 | - * @param Lang $lang |
|
30 | - * @param bool $ignorePassword |
|
31 | - */ |
|
27 | + * Create new instance |
|
28 | + * @param UserParam<TEntity> $param |
|
29 | + * @param Lang $lang |
|
30 | + * @param bool $ignorePassword |
|
31 | + */ |
|
32 | 32 | public function __construct( |
33 | 33 | protected UserParam $param, |
34 | 34 | Lang $lang, |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * {@inheritdoc} |
|
42 | - */ |
|
41 | + * {@inheritdoc} |
|
42 | + */ |
|
43 | 43 | public function setValidationData(): void |
44 | 44 | { |
45 | 45 | $this->addData('username', $this->param->getUsername()); |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
56 | - * {@inheritdoc} |
|
57 | - */ |
|
56 | + * {@inheritdoc} |
|
57 | + */ |
|
58 | 58 | public function setValidationRules(): void |
59 | 59 | { |
60 | 60 | $this->addRules('username', [ |
@@ -19,18 +19,18 @@ discard block |
||
19 | 19 | class ProductCategoryValidator extends AbstractValidator |
20 | 20 | { |
21 | 21 | /** |
22 | - * Create new instance |
|
23 | - * @param ProductCategoryParam<TEntity> $param |
|
24 | - * @param Lang $lang |
|
25 | - */ |
|
22 | + * Create new instance |
|
23 | + * @param ProductCategoryParam<TEntity> $param |
|
24 | + * @param Lang $lang |
|
25 | + */ |
|
26 | 26 | public function __construct(protected ProductCategoryParam $param, Lang $lang) |
27 | 27 | { |
28 | 28 | parent::__construct($lang); |
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * {@inheritdoc} |
|
33 | - */ |
|
32 | + * {@inheritdoc} |
|
33 | + */ |
|
34 | 34 | public function setValidationData(): void |
35 | 35 | { |
36 | 36 | $this->addData('name', $this->param->getName()); |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * {@inheritdoc} |
|
42 | - */ |
|
41 | + * {@inheritdoc} |
|
42 | + */ |
|
43 | 43 | public function setValidationRules(): void |
44 | 44 | { |
45 | 45 | $this->addRules('name', [ |
@@ -22,18 +22,18 @@ discard block |
||
22 | 22 | class ProductValidator extends AbstractValidator |
23 | 23 | { |
24 | 24 | /** |
25 | - * Create new instance |
|
26 | - * @param ProductParam<TEntity> $param |
|
27 | - * @param Lang $lang |
|
28 | - */ |
|
25 | + * Create new instance |
|
26 | + * @param ProductParam<TEntity> $param |
|
27 | + * @param Lang $lang |
|
28 | + */ |
|
29 | 29 | public function __construct(protected ProductParam $param, Lang $lang) |
30 | 30 | { |
31 | 31 | parent::__construct($lang); |
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * {@inheritdoc} |
|
36 | - */ |
|
35 | + * {@inheritdoc} |
|
36 | + */ |
|
37 | 37 | public function setValidationData(): void |
38 | 38 | { |
39 | 39 | $this->addData('name', $this->param->getName()); |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * {@inheritdoc} |
|
48 | - */ |
|
47 | + * {@inheritdoc} |
|
48 | + */ |
|
49 | 49 | public function setValidationRules(): void |
50 | 50 | { |
51 | 51 | $this->addRules('name', [ |