Completed
Push — master ( 827efb...f212b7 )
by Alexandr
46s queued 13s
created

getCustomerSessionValidatorPlugins()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
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\SessionCustomerValidationPage;
11
12
use Spryker\Client\Customer\Plugin\SessionCustomerValidationPage\StorageInvalidationRecordCustomerSessionValidatorPlugin;
13
use Spryker\Yves\SessionRedis\Plugin\SessionCustomerValidationPage\RedisCustomerSessionSaverPlugin;
14
use Spryker\Yves\SessionRedis\Plugin\SessionCustomerValidationPage\RedisCustomerSessionValidatorPlugin;
15
use SprykerShop\Yves\SessionCustomerValidationPage\SessionCustomerValidationPageDependencyProvider as SprykerSessionCustomerValidationPageDependencyProvider;
16
use SprykerShop\Yves\SessionCustomerValidationPageExtension\Dependency\Plugin\CustomerSessionSaverPluginInterface;
17
use SprykerShop\Yves\SessionCustomerValidationPageExtension\Dependency\Plugin\CustomerSessionValidatorPluginInterface;
18
19
class SessionCustomerValidationPageDependencyProvider extends SprykerSessionCustomerValidationPageDependencyProvider
20
{
21
    /**
22
     * @return \SprykerShop\Yves\SessionCustomerValidationPageExtension\Dependency\Plugin\CustomerSessionSaverPluginInterface
23
     */
24
    protected function getCustomerSessionSaverPlugin(): CustomerSessionSaverPluginInterface
25
    {
26
        return new RedisCustomerSessionSaverPlugin();
27
    }
28
29
    /**
30
     * @return \SprykerShop\Yves\SessionCustomerValidationPageExtension\Dependency\Plugin\CustomerSessionValidatorPluginInterface
31
     */
32
    protected function getCustomerSessionValidatorPlugin(): CustomerSessionValidatorPluginInterface
33
    {
34
        return new RedisCustomerSessionValidatorPlugin();
35
    }
36
37
    /**
38
     * @return array<\SprykerShop\Yves\SessionCustomerValidationPageExtension\Dependency\Plugin\CustomerSessionValidatorPluginInterface>
39
     */
40
    protected function getCustomerSessionValidatorPlugins(): array
41
    {
42
        return [
43
            new RedisCustomerSessionValidatorPlugin(),
44
            new StorageInvalidationRecordCustomerSessionValidatorPlugin(),
45
        ];
46
    }
47
}
48