|
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\MerchantGui; |
|
11
|
|
|
|
|
12
|
|
|
use Spryker\Zed\Kernel\Communication\Form\FormTypeInterface; |
|
13
|
|
|
use Spryker\Zed\MerchantGui\MerchantGuiDependencyProvider as SprykerMerchantGuiDependencyProvider; |
|
14
|
|
|
use Spryker\Zed\MerchantProfileGui\Communication\Plugin\MerchantGui\MerchantProfileFormExpanderPlugin; |
|
15
|
|
|
use Spryker\Zed\MerchantProfileGui\Communication\Plugin\MerchantGui\Tabs\MerchantProfileContactPersonFormTabExpanderPlugin; |
|
16
|
|
|
use Spryker\Zed\MerchantProfileGui\Communication\Plugin\MerchantGui\Tabs\MerchantProfileFormTabExpanderPlugin; |
|
17
|
|
|
use Spryker\Zed\MerchantProfileGui\Communication\Plugin\MerchantGui\Tabs\MerchantProfileLegalInformationFormTabExpanderPlugin; |
|
18
|
|
|
use Spryker\Zed\MerchantStockGui\Communication\Plugin\MerchantGui\MerchantStockMerchantFormExpanderPlugin; |
|
19
|
|
|
use Spryker\Zed\MerchantUserGui\Communication\Plugin\MerchantGui\MerchantUserTabMerchantFormTabExpanderPlugin; |
|
20
|
|
|
use Spryker\Zed\MerchantUserGui\Communication\Plugin\MerchantGui\MerchantUserViewMerchantUpdateFormViewExpanderPlugin; |
|
21
|
|
|
use Spryker\Zed\Store\Communication\Plugin\Form\StoreRelationToggleFormTypePlugin; |
|
22
|
|
|
|
|
23
|
|
|
class MerchantGuiDependencyProvider extends SprykerMerchantGuiDependencyProvider |
|
24
|
|
|
{ |
|
25
|
|
|
/** |
|
26
|
|
|
* @return array<\Spryker\Zed\MerchantGuiExtension\Dependency\Plugin\MerchantFormExpanderPluginInterface> |
|
27
|
|
|
*/ |
|
28
|
|
|
protected function getMerchantFormExpanderPlugins(): array |
|
29
|
|
|
{ |
|
30
|
|
|
return [ |
|
31
|
|
|
new MerchantProfileFormExpanderPlugin(), |
|
32
|
|
|
new MerchantStockMerchantFormExpanderPlugin(), |
|
33
|
|
|
]; |
|
34
|
|
|
} |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* @return array<\Spryker\Zed\MerchantGuiExtension\Dependency\Plugin\MerchantFormTabExpanderPluginInterface> |
|
38
|
|
|
*/ |
|
39
|
|
|
protected function getMerchantFormTabsExpanderPlugins(): array |
|
40
|
|
|
{ |
|
41
|
|
|
return [ |
|
42
|
|
|
new MerchantProfileContactPersonFormTabExpanderPlugin(), |
|
43
|
|
|
new MerchantProfileFormTabExpanderPlugin(), |
|
44
|
|
|
new MerchantProfileLegalInformationFormTabExpanderPlugin(), |
|
45
|
|
|
new MerchantUserTabMerchantFormTabExpanderPlugin(), |
|
46
|
|
|
]; |
|
47
|
|
|
} |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* @return \Spryker\Zed\Kernel\Communication\Form\FormTypeInterface |
|
51
|
|
|
*/ |
|
52
|
|
|
protected function getStoreRelationFormTypePlugin(): FormTypeInterface |
|
53
|
|
|
{ |
|
54
|
|
|
return new StoreRelationToggleFormTypePlugin(); |
|
55
|
|
|
} |
|
56
|
|
|
|
|
57
|
|
|
/** |
|
58
|
|
|
* @return array<\Spryker\Zed\MerchantGuiExtension\Dependency\Plugin\MerchantUpdateFormViewExpanderPluginInterface> |
|
59
|
|
|
*/ |
|
60
|
|
|
protected function getMerchantUpdateFormViewExpanderPlugins(): array |
|
61
|
|
|
{ |
|
62
|
|
|
return [ |
|
63
|
|
|
new MerchantUserViewMerchantUpdateFormViewExpanderPlugin(), |
|
64
|
|
|
]; |
|
65
|
|
|
} |
|
66
|
|
|
|
|
67
|
|
|
/** |
|
68
|
|
|
* @return array<\Spryker\Zed\MerchantGuiExtension\Dependency\Plugin\MerchantUpdateFormViewExpanderPluginInterface> |
|
69
|
|
|
*/ |
|
70
|
|
|
protected function getMerchantViewFormViewExpanderPlugins(): array |
|
71
|
|
|
{ |
|
72
|
|
|
return [ |
|
73
|
|
|
new MerchantUserViewMerchantUpdateFormViewExpanderPlugin(), |
|
74
|
|
|
]; |
|
75
|
|
|
} |
|
76
|
|
|
} |
|
77
|
|
|
|