|
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\CustomerPage; |
|
11
|
|
|
|
|
12
|
|
|
use Spryker\Yves\MerchantShipment\Plugin\CustomerPage\MerchantShipmentCheckoutAddressStepPreGroupItemsByShipmentPlugin; |
|
13
|
|
|
use Spryker\Yves\MultiFactorAuth\Plugin\AuthenticationHandler\Customer\CustomerMultiFactorAuthenticationHandlerPlugin; |
|
14
|
|
|
use SprykerShop\Yves\AgentPage\Plugin\Security\UpdateAgentTokenAfterCustomerAuthenticationSuccessPlugin; |
|
15
|
|
|
use SprykerShop\Yves\ClickAndCollectPageExample\Plugin\CustomerPage\ClickAndCollectServiceTypeCheckoutAddressCollectionFormExpanderPlugin; |
|
16
|
|
|
use SprykerShop\Yves\ClickAndCollectPageExample\Plugin\CustomerPage\ClickAndCollectServiceTypeCheckoutMultiShippingAddressesFormExpanderPlugin; |
|
17
|
|
|
use SprykerShop\Yves\CustomerPage\CustomerPageDependencyProvider as SprykerShopCustomerPageDependencyProvider; |
|
18
|
|
|
use SprykerShop\Yves\ServicePointWidget\Plugin\CustomerPage\ServicePointAddressCheckoutAddressCollectionFormExpanderPlugin; |
|
19
|
|
|
use SprykerShop\Yves\ServicePointWidget\Plugin\CustomerPage\ServicePointCheckoutAddressCollectionFormExpanderPlugin; |
|
20
|
|
|
use SprykerShop\Yves\ServicePointWidget\Plugin\CustomerPage\ServicePointCheckoutMultiShippingAddressesFormExpanderPlugin; |
|
21
|
|
|
use SprykerShop\Yves\SessionAgentValidation\Plugin\CustomerPage\UpdateAgentSessionAfterCustomerAuthenticationSuccessPlugin; |
|
22
|
|
|
use SprykerShop\Yves\ShipmentTypeWidget\Plugin\CustomerPage\ShipmentTypeCheckoutAddressCollectionFormExpanderPlugin; |
|
23
|
|
|
use SprykerShop\Yves\ShipmentTypeWidget\Plugin\CustomerPage\ShipmentTypeCheckoutAddressStepPreGroupItemsByShipmentPlugin; |
|
24
|
|
|
use SprykerShop\Yves\ShipmentTypeWidget\Plugin\CustomerPage\ShipmentTypeCheckoutMultiShippingAddressesFormExpanderPlugin; |
|
25
|
|
|
|
|
26
|
|
|
class CustomerPageDependencyProvider extends SprykerShopCustomerPageDependencyProvider |
|
27
|
|
|
{ |
|
28
|
|
|
/** |
|
29
|
|
|
* @return list<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\AfterCustomerAuthenticationSuccessPluginInterface> |
|
30
|
|
|
*/ |
|
31
|
|
|
protected function getAfterCustomerAuthenticationSuccessPlugins(): array |
|
32
|
|
|
{ |
|
33
|
|
|
return [ |
|
|
|
|
|
|
34
|
|
|
new UpdateAgentTokenAfterCustomerAuthenticationSuccessPlugin(), |
|
35
|
|
|
new UpdateAgentSessionAfterCustomerAuthenticationSuccessPlugin(), |
|
36
|
|
|
]; |
|
37
|
|
|
} |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* @return array<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\CheckoutAddressStepPreGroupItemsByShipmentPluginInterface> |
|
41
|
|
|
*/ |
|
42
|
|
|
protected function getCheckoutAddressStepPreGroupItemsByShipmentPlugins(): array |
|
43
|
|
|
{ |
|
44
|
|
|
return [ |
|
45
|
|
|
new MerchantShipmentCheckoutAddressStepPreGroupItemsByShipmentPlugin(), |
|
46
|
|
|
new ShipmentTypeCheckoutAddressStepPreGroupItemsByShipmentPlugin(), |
|
47
|
|
|
]; |
|
48
|
|
|
} |
|
49
|
|
|
|
|
50
|
|
|
/** |
|
51
|
|
|
* @return list<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\CheckoutAddressCollectionFormExpanderPluginInterface> |
|
52
|
|
|
*/ |
|
53
|
|
|
protected function getCheckoutAddressCollectionFormExpanderPlugins(): array |
|
54
|
|
|
{ |
|
55
|
|
|
return [ |
|
56
|
|
|
new ShipmentTypeCheckoutAddressCollectionFormExpanderPlugin(), |
|
57
|
|
|
new ServicePointCheckoutAddressCollectionFormExpanderPlugin(), |
|
58
|
|
|
new ServicePointAddressCheckoutAddressCollectionFormExpanderPlugin(), |
|
59
|
|
|
new ClickAndCollectServiceTypeCheckoutAddressCollectionFormExpanderPlugin(), |
|
60
|
|
|
]; |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* @return list<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\CheckoutMultiShippingAddressesFormExpanderPluginInterface> |
|
65
|
|
|
*/ |
|
66
|
|
|
protected function getCheckoutMultiShippingAddressesFormExpanderPlugins(): array |
|
67
|
|
|
{ |
|
68
|
|
|
return [ |
|
|
|
|
|
|
69
|
|
|
new ShipmentTypeCheckoutMultiShippingAddressesFormExpanderPlugin(), |
|
70
|
|
|
new ServicePointCheckoutMultiShippingAddressesFormExpanderPlugin(), |
|
71
|
|
|
new ClickAndCollectServiceTypeCheckoutMultiShippingAddressesFormExpanderPlugin(), |
|
72
|
|
|
]; |
|
73
|
|
|
} |
|
74
|
|
|
|
|
75
|
|
|
/** |
|
76
|
|
|
* @return array<\SprykerShop\Yves\CustomerPageExtension\Dependency\Plugin\AuthenticationHandlerPluginInterface> |
|
77
|
|
|
*/ |
|
78
|
|
|
protected function getCustomerAuthenticationHandlerPlugins(): array |
|
79
|
|
|
{ |
|
80
|
|
|
return [ |
|
81
|
|
|
new CustomerMultiFactorAuthenticationHandlerPlugin(), |
|
82
|
|
|
]; |
|
83
|
|
|
} |
|
84
|
|
|
} |
|
85
|
|
|
|