Passed
Pull Request — master (#573)
by Eugenia
05:45
created

MerchantSalesOrderDependencyProvider::getMerchantOrderTotalsPreRecalculatePlugins()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 4
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\Zed\MerchantSalesOrder;
11
12
use Spryker\Zed\DiscountMerchantSalesOrder\Communication\Plugin\MerchantSalesOrder\DiscountMerchantOrderFilterPlugin;
13
use Spryker\Zed\Kernel\Container;
14
use Spryker\Zed\MerchantOms\Communication\Plugin\MerchantSalesOrder\EventTriggerMerchantOrderPostCreatePlugin;
15
use Spryker\Zed\MerchantOms\Communication\Plugin\MerchantSalesOrder\MerchantOmsMerchantOrderExpanderPlugin;
16
use Spryker\Zed\MerchantSalesOrder\MerchantSalesOrderDependencyProvider as SprykerMerchantSalesOrderDependencyProvider;
17
use Spryker\Zed\MerchantSalesOrderSalesMerchantCommission\Communication\Plugin\MerchantSalesOrder\UpdateMerchantCommissionTotalsMerchantOrderPostCreatePlugin;
18
19
class MerchantSalesOrderDependencyProvider extends SprykerMerchantSalesOrderDependencyProvider
20
{
21
    /**
22
     * @param \Spryker\Zed\Kernel\Container $container
23
     *
24
     * @return \Spryker\Zed\Kernel\Container
25
     */
26
    public function provideCommunicationLayerDependencies(Container $container): Container
27
    {
28
        $container = parent::provideCommunicationLayerDependencies($container);
29
30
        $container = $this->addSalesFacade($container);
31
32
        return $container;
33
    }
34
35
    /**
36
     * @return array<\Spryker\Zed\MerchantSalesOrderExtension\Dependency\Plugin\MerchantOrderPostCreatePluginInterface>
37
     */
38
    protected function getMerchantOrderPostCreatePlugins(): array
39
    {
40
        return [
41
            new EventTriggerMerchantOrderPostCreatePlugin(),
42
            new UpdateMerchantCommissionTotalsMerchantOrderPostCreatePlugin(),
43
        ];
44
    }
45
46
    /**
47
     * @return array<\Spryker\Zed\MerchantSalesOrderExtension\Dependency\Plugin\MerchantOrderExpanderPluginInterface>
48
     */
49
    protected function getMerchantOrderExpanderPlugins(): array
50
    {
51
        return [
52
            new MerchantOmsMerchantOrderExpanderPlugin(),
53
        ];
54
    }
55
56
    /**
57
     * @return array<\Spryker\Zed\MerchantSalesOrderExtension\Dependency\Plugin\MerchantOrderFilterPluginInterface>
58
     */
59
    protected function getMerchantOrderFilterPlugins(): array
60
    {
61
        return [
62
            new DiscountMerchantOrderFilterPlugin(),
63
        ];
64
    }
65
}
66