getCustomerSessionSetPlugins()   A
last analyzed

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
c 0
b 0
f 0
rs 10
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\Client\Customer;
11
12
use Spryker\Client\Cart\Plugin\CustomerChangeCartUpdatePlugin;
13
use Spryker\Client\Customer\CustomerDependencyProvider as SprykerCustomerDependencyProvider;
14
use Spryker\Client\Customer\Plugin\CustomerAddressSessionUpdatePlugin;
15
use Spryker\Client\Customer\Plugin\CustomerTransferSessionRefreshPlugin;
16
use Spryker\Client\CustomerAccessPermission\Plugin\Customer\CustomerAccessSecuredPatternRulePlugin;
17
use Spryker\Client\PersistentCart\Plugin\GuestCartUpdateCustomerSessionSetPlugin;
18
19
class CustomerDependencyProvider extends SprykerCustomerDependencyProvider
20
{
21
    /**
22
     * @return array<\Spryker\Client\Customer\Dependency\Plugin\CustomerSessionGetPluginInterface>
23
     */
24
    protected function getCustomerSessionGetPlugins(): array
25
    {
26
        return [
27
            new CustomerTransferSessionRefreshPlugin(),
28
        ];
29
    }
30
31
    /**
32
     * @return array<\Spryker\Client\Customer\Dependency\Plugin\CustomerSessionSetPluginInterface>
33
     */
34
    protected function getCustomerSessionSetPlugins(): array
35
    {
36
        return [
37
            new GuestCartUpdateCustomerSessionSetPlugin(),
38
            new CustomerChangeCartUpdatePlugin(),
39
        ];
40
    }
41
42
    /**
43
     * @return array<\Spryker\Client\Customer\Dependency\Plugin\DefaultAddressChangePluginInterface>
44
     */
45
    protected function getDefaultAddressChangePlugins(): array
46
    {
47
        return [
48
            new CustomerAddressSessionUpdatePlugin(),
0 ignored issues
show
Deprecated Code introduced by
The class Spryker\Client\Customer\...ressSessionUpdatePlugin has been deprecated: Use {@link \Spryker\Client\Customer\Plugin\Customer\CustomerAddressDefaultAddressChangePlugin} instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

48
            /** @scrutinizer ignore-deprecated */ new CustomerAddressSessionUpdatePlugin(),
Loading history...
49
        ];
50
    }
51
52
    /**
53
     * @return array<\Spryker\Client\CustomerExtension\Dependency\Plugin\CustomerSecuredPatternRulePluginInterface>
54
     */
55
    protected function getCustomerSecuredPatternRulePlugins(): array
56
    {
57
        return [
58
            new CustomerAccessSecuredPatternRulePlugin(), #CustomerAccessPermissionFeature
59
        ];
60
    }
61
}
62