Passed
Push — master ( 185b2c...24e5ac )
by Olha
08:12
created

getUserMultiFactorAuthPlugins()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace Pyz\Zed\MultiFactorAuth;
11
12
use Spryker\Zed\MultiFactorAuth\Communication\Plugin\Factors\Email\UserEmailMultiFactorAuthPlugin;
13
use Spryker\Zed\MultiFactorAuth\Communication\Plugin\Sender\Customer\CustomerEmailCodeSenderStrategyPlugin;
14
use Spryker\Zed\MultiFactorAuth\Communication\Plugin\Sender\User\UserEmailCodeSenderStrategyPlugin;
15
use Spryker\Zed\MultiFactorAuth\MultiFactorAuthDependencyProvider as SprykerMultiFactorAuthDependencyProvider;
16
use Spryker\Zed\SecurityGui\Communication\Plugin\MultiFactorAuth\PostUserLoginMultiFactorAuthenticationPlugin;
17
18
class MultiFactorAuthDependencyProvider extends SprykerMultiFactorAuthDependencyProvider
19
{
20
    /**
21
     * @return array<\Spryker\Shared\MultiFactorAuthExtension\Dependency\Plugin\MultiFactorAuthPluginInterface>
22
     */
23
    protected function getUserMultiFactorAuthPlugins(): array
24
    {
25
        return [
26
            new UserEmailMultiFactorAuthPlugin(),
27
        ];
28
    }
29
30
    /**
31
     * @return array<\Spryker\Shared\MultiFactorAuthExtension\Dependency\Plugin\SendStrategyPluginInterface>
32
     */
33
    protected function getCustomerSendStrategyPlugins(): array
34
    {
35
        return [
36
            new CustomerEmailCodeSenderStrategyPlugin(),
37
        ];
38
    }
39
40
    /**
41
     * @return array<\Spryker\Shared\MultiFactorAuthExtension\Dependency\Plugin\SendStrategyPluginInterface>
42
     */
43
    protected function getUserSendStrategyPlugins(): array
44
    {
45
        return [
46
            new UserEmailCodeSenderStrategyPlugin(),
47
        ];
48
    }
49
50
    /**
51
     * @return array<\Spryker\Shared\MultiFactorAuthExtension\Dependency\Plugin\PostLoginMultiFactorAuthenticationPluginInterface>
52
     */
53
    protected function getPostLoginMultiFactorAuthenticationPlugins(): array
54
    {
55
        return [
56
            new PostUserLoginMultiFactorAuthenticationPlugin(),
57
        ];
58
    }
59
}
60