Passed
Push — master ( b0573e...b2a2f5 )
by Olha
05:18
created

MultiFactorAuthDependencyProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 8
dl 0
loc 30
rs 10
c 1
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCustomerMultiFactorAuthPlugins() 0 4 1
A getPostLoginMultiFactorAuthenticationPlugins() 0 5 1
A getAgentMultiFactorAuthPlugins() 0 4 1
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