|
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\Quote; |
|
11
|
|
|
|
|
12
|
|
|
use Spryker\Client\Agent\Plugin\Quote\AgentQuoteTransferExpanderPlugin; |
|
13
|
|
|
use Spryker\Client\Kernel\Container; |
|
14
|
|
|
use Spryker\Client\MultiCart\Plugin\NameQuoteTransferExpanderPlugin; |
|
15
|
|
|
use Spryker\Client\PersistentCart\Plugin\Quote\QuoteSyncDatabaseStrategyReaderPlugin; |
|
16
|
|
|
use Spryker\Client\Price\Plugin\PriceModeQuoteTransferExpanderPlugin; |
|
17
|
|
|
use Spryker\Client\Quote\QuoteDependencyProvider as SprykerQuoteDependencyProvider; |
|
18
|
|
|
use Spryker\Client\QuoteRequest\Plugin\Quote\QuoteRequestDatabaseStrategyPreCheckPlugin; |
|
19
|
|
|
use Spryker\Client\Store\Plugin\StoreQuoteTransferExpanderPlugin; |
|
20
|
|
|
|
|
21
|
|
|
class QuoteDependencyProvider extends SprykerQuoteDependencyProvider |
|
22
|
|
|
{ |
|
23
|
|
|
/** |
|
24
|
|
|
* @param \Spryker\Client\Kernel\Container $container |
|
25
|
|
|
* |
|
26
|
|
|
* @return array<\Spryker\Client\QuoteExtension\Dependency\Plugin\QuoteTransferExpanderPluginInterface> |
|
27
|
|
|
*/ |
|
28
|
|
|
protected function getQuoteTransferExpanderPlugins(Container $container): array // phpcs:ignore SlevomatCodingStandard.Functions.UnusedParameter |
|
29
|
|
|
{ |
|
30
|
|
|
return [ |
|
31
|
|
|
new NameQuoteTransferExpanderPlugin(), #MultiCartFeature |
|
32
|
|
|
new StoreQuoteTransferExpanderPlugin(), |
|
33
|
|
|
new PriceModeQuoteTransferExpanderPlugin(), |
|
34
|
|
|
new AgentQuoteTransferExpanderPlugin(), # AgentAssist Feature |
|
35
|
|
|
]; |
|
36
|
|
|
} |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* @return array<\Spryker\Client\QuoteExtension\Dependency\Plugin\DatabaseStrategyPreCheckPluginInterface> |
|
40
|
|
|
*/ |
|
41
|
|
|
protected function getDatabaseStrategyPreCheckPlugins(): array |
|
42
|
|
|
{ |
|
43
|
|
|
return [ |
|
44
|
|
|
new QuoteRequestDatabaseStrategyPreCheckPlugin(), |
|
45
|
|
|
]; |
|
46
|
|
|
} |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* @return array<\Spryker\Client\QuoteExtension\Dependency\Plugin\DatabaseStrategyReaderPluginInterface> |
|
50
|
|
|
*/ |
|
51
|
|
|
protected function getDatabaseStrategyReaderPlugins(): array |
|
52
|
|
|
{ |
|
53
|
|
|
return [ |
|
54
|
|
|
new QuoteSyncDatabaseStrategyReaderPlugin(), |
|
55
|
|
|
]; |
|
56
|
|
|
} |
|
57
|
|
|
} |
|
58
|
|
|
|