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

getCustomerMultiFactorAuthPlugins()   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\Yves\MultiFactorAuth;
11
12
use Spryker\Yves\MultiFactorAuth\MultiFactorAuthDependencyProvider as SprykerMultiFactorAuthDependencyProvider;
13
use Spryker\Yves\MultiFactorAuth\Plugin\Factors\Email\AgentUserEmailMultiFactorAuthPlugin;
14
use Spryker\Yves\MultiFactorAuth\Plugin\Factors\Email\CustomerEmailMultiFactorAuthPlugin;
15
use SprykerShop\Yves\AgentPage\Plugin\MultiFactorAuth\PostAgentLoginMultiFactorAuthenticationPlugin;
16
use SprykerShop\Yves\CustomerPage\Plugin\MultiFactorAuth\PostCustomerLoginMultiFactorAuthenticationPlugin;
17
18
class MultiFactorAuthDependencyProvider extends SprykerMultiFactorAuthDependencyProvider
19
{
20
    /**
21
     * @return array<\Spryker\Shared\MultiFactorAuthExtension\Dependency\Plugin\MultiFactorAuthPluginInterface>
22
     */
23
    protected function getCustomerMultiFactorAuthPlugins(): array
24
    {
25
        return [
26
            new CustomerEmailMultiFactorAuthPlugin(),
27
        ];
28
    }
29
30
    /**
31
     * @return array<\Spryker\Shared\MultiFactorAuthExtension\Dependency\Plugin\MultiFactorAuthPluginInterface>
32
     */
33
    protected function getAgentMultiFactorAuthPlugins(): array
34
    {
35
        return [
36
            new AgentUserEmailMultiFactorAuthPlugin(),
37
        ];
38
    }
39
40
    /**
41
     * @return array<\Spryker\Shared\MultiFactorAuthExtension\Dependency\Plugin\PostLoginMultiFactorAuthenticationPluginInterface>
42
     */
43
    protected function getPostLoginMultiFactorAuthenticationPlugins(): array
44
    {
45
        return [
46
            new PostCustomerLoginMultiFactorAuthenticationPlugin(),
47
            new PostAgentLoginMultiFactorAuthenticationPlugin(),
48
        ];
49
    }
50
}
51