Passed
Pull Request — master (#69)
by Artem
03:23
created

AclMerchantPortalDependencyProvider   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 122
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 84
dl 0
loc 122
rs 10
c 1
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getMerchantAclEntityRuleExpanderPlugins() 0 22 1
A getAclEntityConfigurationExpanderPlugins() 0 53 1
A getMerchantAclRuleExpanderPlugins() 0 9 1
A getMerchantUserAclRuleExpanderPlugins() 0 5 1
A getMerchantUserAclEntityRuleExpanderPlugins() 0 4 1
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
namespace Pyz\Zed\AclMerchantPortal;
9
10
use Spryker\Zed\Acl\Communication\Plugin\AclMerchantPortal\AclEntityConfigurationExpanderPlugin;
11
use Spryker\Zed\AclEntity\Communication\Plugin\AclMerchantPortal\AclEntityAclEntityConfigurationExpanderPlugin;
12
use Spryker\Zed\AclMerchantPortal\AclMerchantPortalDependencyProvider as SprykerAclMerchantPortalDependencyProvider;
13
use Spryker\Zed\Availability\Communication\Plugin\AclMerchantPortal\AvailabilityAclEntityConfigurationExpanderPlugin;
14
use Spryker\Zed\Category\Communication\Plugin\AclMerchantPortal\CategoryAclEntityConfigurationExpanderPlugin;
15
use Spryker\Zed\CategoryImage\Communication\Plugin\AclMerchantPortal\CategoryImageAclEntityConfigurationExpanderPlugin;
16
use Spryker\Zed\CmsBlock\Communication\Plugin\AclMerchantPortal\CmsBlockAclEntityConfigurationExpanderPlugin;
17
use Spryker\Zed\Comment\Communication\Plugin\AclMerchantPortal\CommentAclEntityConfigurationExpanderPlugin;
18
use Spryker\Zed\CompanyBusinessUnit\Communication\Plugin\AclMerchantPortal\CompanyBusinessUnitAclEntityConfigurationExpanderPlugin;
19
use Spryker\Zed\Country\Communication\Plugin\AclMerchantPortal\CountryAclEntityConfigurationExpanderPlugin;
20
use Spryker\Zed\Country\Communication\Plugin\AclMerchantPortal\CountryMerchantAclEntityRuleExpanderPlugin;
21
use Spryker\Zed\Currency\Communication\Plugin\AclMerchantPortal\CurrencyAclEntityConfigurationExpanderPlugin;
22
use Spryker\Zed\Currency\Communication\Plugin\AclMerchantPortal\CurrencyMerchantAclEntityRuleExpanderPlugin;
23
use Spryker\Zed\Customer\Communication\Plugin\AclMerchantPortal\CustomerMerchantAclEntityRuleExpanderPlugin;
24
use Spryker\Zed\DashboardMerchantPortalGui\Communication\Plugin\AclMerchantPortal\DashboardMerchantPortalGuiMerchantAclRuleExpanderPlugin;
25
use Spryker\Zed\Discount\Communication\Plugin\AclMerchantPortal\DiscountAclEntityConfigurationExpanderPlugin;
26
use Spryker\Zed\Discount\Communication\Plugin\AclMerchantPortal\DiscountMerchantAclEntityRuleExpanderPlugin;
27
use Spryker\Zed\DiscountPromotion\Communication\Plugin\AclMerchantPortal\DiscountPromotionAclEntityConfigurationExpanderPlugin;
28
use Spryker\Zed\DiscountPromotion\Communication\Plugin\AclMerchantPortal\DiscountPromotionMerchantAclEntityRuleExpanderPlugin;
29
use Spryker\Zed\Glossary\Communication\Plugin\AclMerchantPortal\GlossaryAclEntityConfigurationExpanderPlugin;
30
use Spryker\Zed\Locale\Communication\Plugin\AclMerchantPortal\LocaleAclEntityConfigurationExpanderPlugin;
31
use Spryker\Zed\Locale\Communication\Plugin\AclMerchantPortal\LocaleMerchantAclEntityRuleExpanderPlugin;
32
use Spryker\Zed\Merchant\Communication\Plugin\AclMerchantPortal\MerchantAclEntityConfigurationExpanderPlugin;
33
use Spryker\Zed\Merchant\Communication\Plugin\AclMerchantPortal\MerchantMerchantAclEntityRuleExpanderPlugin;
34
use Spryker\Zed\MerchantCategory\Communication\Plugin\AclMerchantPortal\MerchantCategoryAclEntityConfigurationExpanderPlugin;
35
use Spryker\Zed\MerchantProduct\Communication\Plugin\AclMerchantPortal\MerchantProductAclEntityConfigurationExpanderPlugin;
36
use Spryker\Zed\MerchantProduct\Communication\Plugin\AclMerchantPortal\MerchantProductMerchantAclEntityRuleExpanderPlugin;
37
use Spryker\Zed\MerchantProductOffer\Communication\Plugin\AclMerchantPortal\MerchantProductOfferAclEntityConfigurationExpanderPlugin;
38
use Spryker\Zed\MerchantProfile\Communication\Plugin\AclMerchantPortal\MerchantProfileAclEntityConfigurationExpanderPlugin;
39
use Spryker\Zed\MerchantProfileMerchantPortalGui\Communication\Plugin\AclMerchantPortal\MerchantProfileMerchantPortalGuiMerchantAclRuleExpanderPlugin;
40
use Spryker\Zed\MerchantRelationship\Communication\Plugin\AclMerchantPortal\MerchantRelationshipAclEntityConfigurationExpanderPlugin;
41
use Spryker\Zed\MerchantSalesOrder\Communication\Plugin\AclMerchantPortal\MerchantSalesOrderAclEntityConfigurationExpanderPlugin;
42
use Spryker\Zed\MerchantSalesOrder\Communication\Plugin\AclMerchantPortal\MerchantSalesOrderMerchantAclEntityRuleExpanderPlugin;
43
use Spryker\Zed\MerchantStock\Communication\Plugin\AclMerchantPortal\MerchantStockAclEntityConfigurationExpanderPlugin;
44
use Spryker\Zed\MerchantUser\Communication\Plugin\AclMerchantPortal\MerchantUserAclEntityConfigurationExpanderPlugin;
45
use Spryker\Zed\MerchantUser\Communication\Plugin\AclMerchantPortal\MerchantUserMerchantUserAclEntityRuleExpanderPlugin;
46
use Spryker\Zed\Oms\Communication\Plugin\AclMerchantPortal\OmsAclEntityConfigurationExpanderPlugin;
47
use Spryker\Zed\Oms\Communication\Plugin\AclMerchantPortal\OmsMerchantAclEntityRuleExpanderPlugin;
48
use Spryker\Zed\OmsProductOfferReservation\Communication\Plugin\AclMerchantPortal\OmsProductOfferReservationAclEntityConfigurationExpanderPlugin;
49
use Spryker\Zed\OmsProductOfferReservation\Communication\Plugin\AclMerchantPortal\OmsProductOfferReservationMerchantAclEntityRuleExpanderPlugin;
50
use Spryker\Zed\Payment\Communication\Plugin\AclMerchantPortal\PaymentAclEntityConfigurationExpanderPlugin;
51
use Spryker\Zed\PriceProduct\Communication\Plugin\AclMerchantPortal\PriceProductAclEntityConfigurationExpanderPlugin;
52
use Spryker\Zed\PriceProduct\Communication\Plugin\AclMerchantPortal\PriceProductMerchantAclEntityRuleExpanderPlugin;
53
use Spryker\Zed\PriceProductMerchantRelationship\Communication\Plugin\AclMerchantPortal\PriceProductMerchantRelationshipAclEntityConfigurationExpanderPlugin;
54
use Spryker\Zed\PriceProductMerchantRelationshipMerchantPortalGui\Communication\Plugin\AclMerchantPortal\PriceProductMerchantRelationshipMerchantPortalGuiMerchantAclRuleExpanderPlugin;
55
use Spryker\Zed\PriceProductOffer\Communication\Plugin\AclMerchantPortal\PriceProductOfferAclEntityConfigurationExpanderPlugin;
56
use Spryker\Zed\Product\Communication\Plugin\AclMerchantPortal\ProductAclEntityConfigurationExpanderPlugin;
57
use Spryker\Zed\Product\Communication\Plugin\AclMerchantPortal\ProductMerchantAclEntityRuleExpanderPlugin;
58
use Spryker\Zed\ProductAttribute\Communication\Plugin\AclMerchantPortal\ProductAttributeAclEntityConfigurationExpanderPlugin;
59
use Spryker\Zed\ProductCategory\Communication\Plugin\AclMerchantPortal\ProductCategoryAclEntityConfigurationExpanderPlugin;
60
use Spryker\Zed\ProductImage\Communication\Plugin\AclMerchantPortal\ProductImageAclEntityConfigurationExpanderPlugin;
61
use Spryker\Zed\ProductImage\Communication\Plugin\AclMerchantPortal\ProductImageMerchantAclEntityRuleExpanderPlugin;
62
use Spryker\Zed\ProductMerchantPortalGui\Communication\Plugin\AclMerchantPortal\ProductMerchantPortalGuiMerchantAclRuleExpanderPlugin;
63
use Spryker\Zed\ProductOffer\Communication\Plugin\AclMerchantPortal\ProductOfferAclEntityConfigurationExpanderPlugin;
64
use Spryker\Zed\ProductOffer\Communication\Plugin\AclMerchantPortal\ProductOfferMerchantAclEntityRuleExpanderPlugin;
65
use Spryker\Zed\ProductOfferMerchantPortalGui\Communication\Plugin\AclMerchantPortal\ProductOfferMerchantPortalGuiMerchantAclRuleExpanderPlugin;
66
use Spryker\Zed\ProductOfferStock\Communication\Plugin\AclMerchantPortal\ProductOfferStockAclEntityConfigurationExpanderPlugin;
67
use Spryker\Zed\ProductOfferValidity\Communication\Plugin\AclMerchantPortal\ProductOfferValidityAclEntityConfigurationExpanderPlugin;
68
use Spryker\Zed\ProductOption\Communication\Plugin\AclMerchantPortal\ProductOptionAclEntityConfigurationExpanderPlugin;
69
use Spryker\Zed\ProductSearch\Communication\Plugin\AclMerchantPortal\ProductSearchAclEntityConfigurationExpanderPlugin;
70
use Spryker\Zed\ProductValidity\Communication\Plugin\AclMerchantPortal\ProductValidityAclEntityConfigurationExpanderPlugin;
71
use Spryker\Zed\Refund\Communication\Plugin\AclMerchantPortal\RefundAclEntityConfigurationExpanderPlugin;
72
use Spryker\Zed\Refund\Communication\Plugin\AclMerchantPortal\RefundMerchantAclEntityRuleExpanderPlugin;
73
use Spryker\Zed\Sales\Communication\Plugin\AclMerchantPortal\SalesAclEntityConfigurationExpanderPlugin;
74
use Spryker\Zed\Sales\Communication\Plugin\AclMerchantPortal\SalesMerchantAclEntityRuleExpanderPlugin;
75
use Spryker\Zed\SalesInvoice\Communication\Plugin\AclMerchantPortal\SalesInvoiceAclEntityConfigurationExpanderPlugin;
76
use Spryker\Zed\SalesMerchantPortalGui\Communication\Plugin\AclMerchantPortal\SalesMerchantPortalGuiMerchantAclRuleExpanderPlugin;
77
use Spryker\Zed\SalesOrderThreshold\Communication\Plugin\AclMerchantPortal\SalesOrderThresholdAclEntityConfigurationExpanderPlugin;
78
use Spryker\Zed\SecurityMerchantPortalGui\Communication\Plugin\AclMerchantPortal\SecurityMerchantPortalGuiMerchantUserAclRuleExpanderPlugin;
79
use Spryker\Zed\Shipment\Communication\Plugin\AclMerchantPortal\ShipmentAclEntityConfigurationExpanderPlugin;
80
use Spryker\Zed\StateMachine\Communication\Plugin\AclMerchantPortal\StateMachineAclEntityConfigurationExpanderPlugin;
81
use Spryker\Zed\Stock\Communication\Plugin\AclMerchantPortal\StockAclEntityConfigurationExpanderPlugin;
82
use Spryker\Zed\Store\Communication\Plugin\AclMerchantPortal\StoreAclEntityConfigurationExpanderPlugin;
83
use Spryker\Zed\Store\Communication\Plugin\AclMerchantPortal\StoreMerchantAclEntityRuleExpanderPlugin;
84
use Spryker\Zed\Tax\Communication\Plugin\AclMerchantPortal\TaxAclEntityConfigurationExpanderPlugin;
85
use Spryker\Zed\Url\Communication\Plugin\AclMerchantPortal\UrlAclEntityConfigurationExpanderPlugin;
86
use Spryker\Zed\Url\Communication\Plugin\AclMerchantPortal\UrlMerchantAclEntityRuleExpanderPlugin;
87
use Spryker\Zed\UserMerchantPortalGui\Communication\Plugin\AclMerchantPortal\UserMerchantPortalGuiMerchantUserAclRuleExpanderPlugin;
88
use Spryker\Zed\UserPasswordReset\Communication\Plugin\AclMerchantPortal\UserPasswordResetAclEntityConfigurationExpanderPlugin;
89
90
class AclMerchantPortalDependencyProvider extends SprykerAclMerchantPortalDependencyProvider
91
{
92
    /**
93
     * @return list<\Spryker\Zed\AclMerchantPortalExtension\Dependency\Plugin\MerchantAclRuleExpanderPluginInterface>
94
     */
95
    protected function getMerchantAclRuleExpanderPlugins(): array
96
    {
97
        return [
98
            new DashboardMerchantPortalGuiMerchantAclRuleExpanderPlugin(),
99
            new MerchantProfileMerchantPortalGuiMerchantAclRuleExpanderPlugin(),
100
            new ProductOfferMerchantPortalGuiMerchantAclRuleExpanderPlugin(),
101
            new ProductMerchantPortalGuiMerchantAclRuleExpanderPlugin(),
102
            new SalesMerchantPortalGuiMerchantAclRuleExpanderPlugin(),
103
            new PriceProductMerchantRelationshipMerchantPortalGuiMerchantAclRuleExpanderPlugin(),
104
        ];
105
    }
106
107
    /**
108
     * @return list<\Spryker\Zed\AclMerchantPortalExtension\Dependency\Plugin\MerchantAclEntityRuleExpanderPluginInterface>
109
     */
110
    protected function getMerchantAclEntityRuleExpanderPlugins(): array
111
    {
112
        return [
113
            new ProductOfferMerchantAclEntityRuleExpanderPlugin(),
114
            new ProductMerchantAclEntityRuleExpanderPlugin(),
115
            new MerchantMerchantAclEntityRuleExpanderPlugin(),
116
            new MerchantSalesOrderMerchantAclEntityRuleExpanderPlugin(),
117
            new MerchantProductMerchantAclEntityRuleExpanderPlugin(),
118
            new CurrencyMerchantAclEntityRuleExpanderPlugin(),
119
            new CountryMerchantAclEntityRuleExpanderPlugin(),
120
            new StoreMerchantAclEntityRuleExpanderPlugin(),
121
            new LocaleMerchantAclEntityRuleExpanderPlugin(),
122
            new SalesMerchantAclEntityRuleExpanderPlugin(),
123
            new PriceProductMerchantAclEntityRuleExpanderPlugin(),
124
            new ProductImageMerchantAclEntityRuleExpanderPlugin(),
125
            new OmsProductOfferReservationMerchantAclEntityRuleExpanderPlugin(),
126
            new OmsMerchantAclEntityRuleExpanderPlugin(),
127
            new UrlMerchantAclEntityRuleExpanderPlugin(),
128
            new RefundMerchantAclEntityRuleExpanderPlugin(),
129
            new CustomerMerchantAclEntityRuleExpanderPlugin(),
130
            new DiscountMerchantAclEntityRuleExpanderPlugin(),
131
            new DiscountPromotionMerchantAclEntityRuleExpanderPlugin(),
132
        ];
133
    }
134
135
    /**
136
     * @return list<\Spryker\Zed\AclMerchantPortalExtension\Dependency\Plugin\MerchantUserAclRuleExpanderPluginInterface>
137
     */
138
    protected function getMerchantUserAclRuleExpanderPlugins(): array
139
    {
140
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...clRuleExpanderPlugin()) returns the type array<integer,Spryker\Ze...rAclRuleExpanderPlugin> which is incompatible with the documented return type Pyz\Zed\AclMerchantPortal\list.
Loading history...
141
            new SecurityMerchantPortalGuiMerchantUserAclRuleExpanderPlugin(),
142
            new UserMerchantPortalGuiMerchantUserAclRuleExpanderPlugin(),
143
        ];
144
    }
145
146
    /**
147
     * @return list<\Spryker\Zed\AclMerchantPortalExtension\Dependency\Plugin\MerchantUserAclEntityRuleExpanderPluginInterface>
148
     */
149
    protected function getMerchantUserAclEntityRuleExpanderPlugins(): array
150
    {
151
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...tyRuleExpanderPlugin()) returns the type array<integer,Spryker\Ze...tityRuleExpanderPlugin> which is incompatible with the documented return type Pyz\Zed\AclMerchantPortal\list.
Loading history...
152
            new MerchantUserMerchantUserAclEntityRuleExpanderPlugin(),
153
        ];
154
    }
155
156
    /**
157
     * @return list<\Spryker\Zed\AclMerchantPortalExtension\Dependency\Plugin\AclEntityConfigurationExpanderPluginInterface>
158
     */
159
    protected function getAclEntityConfigurationExpanderPlugins(): array
160
    {
161
        return [
162
            new AclEntityAclEntityConfigurationExpanderPlugin(),
163
            new AclEntityConfigurationExpanderPlugin(),
164
            new AvailabilityAclEntityConfigurationExpanderPlugin(),
165
            new CategoryAclEntityConfigurationExpanderPlugin(),
166
            new CategoryImageAclEntityConfigurationExpanderPlugin(),
167
            new CmsBlockAclEntityConfigurationExpanderPlugin(),
168
            new CommentAclEntityConfigurationExpanderPlugin(),
169
            new CompanyBusinessUnitAclEntityConfigurationExpanderPlugin(),
170
            new CountryAclEntityConfigurationExpanderPlugin(),
171
            new CurrencyAclEntityConfigurationExpanderPlugin(),
172
            new DiscountAclEntityConfigurationExpanderPlugin(),
173
            new DiscountPromotionAclEntityConfigurationExpanderPlugin(),
174
            new GlossaryAclEntityConfigurationExpanderPlugin(),
175
            new LocaleAclEntityConfigurationExpanderPlugin(),
176
            new MerchantAclEntityConfigurationExpanderPlugin(),
177
            new MerchantCategoryAclEntityConfigurationExpanderPlugin(),
178
            new MerchantProductAclEntityConfigurationExpanderPlugin(),
179
            new MerchantProductOfferAclEntityConfigurationExpanderPlugin(),
180
            new MerchantProfileAclEntityConfigurationExpanderPlugin(),
181
            new MerchantRelationshipAclEntityConfigurationExpanderPlugin(),
182
            new MerchantSalesOrderAclEntityConfigurationExpanderPlugin(),
183
            new MerchantStockAclEntityConfigurationExpanderPlugin(),
184
            new MerchantUserAclEntityConfigurationExpanderPlugin(),
185
            new OmsAclEntityConfigurationExpanderPlugin(),
186
            new OmsProductOfferReservationAclEntityConfigurationExpanderPlugin(),
187
            new PaymentAclEntityConfigurationExpanderPlugin(),
188
            new PriceProductAclEntityConfigurationExpanderPlugin(),
189
            new PriceProductMerchantRelationshipAclEntityConfigurationExpanderPlugin(),
190
            new PriceProductOfferAclEntityConfigurationExpanderPlugin(),
191
            new ProductAclEntityConfigurationExpanderPlugin(),
192
            new ProductAttributeAclEntityConfigurationExpanderPlugin(),
193
            new ProductCategoryAclEntityConfigurationExpanderPlugin(),
194
            new ProductImageAclEntityConfigurationExpanderPlugin(),
195
            new ProductOfferAclEntityConfigurationExpanderPlugin(),
196
            new ProductOfferStockAclEntityConfigurationExpanderPlugin(),
197
            new ProductOfferValidityAclEntityConfigurationExpanderPlugin(),
198
            new ProductOptionAclEntityConfigurationExpanderPlugin(),
199
            new ProductSearchAclEntityConfigurationExpanderPlugin(),
200
            new ProductValidityAclEntityConfigurationExpanderPlugin(),
201
            new RefundAclEntityConfigurationExpanderPlugin(),
202
            new SalesAclEntityConfigurationExpanderPlugin(),
203
            new SalesInvoiceAclEntityConfigurationExpanderPlugin(),
204
            new SalesOrderThresholdAclEntityConfigurationExpanderPlugin(),
205
            new ShipmentAclEntityConfigurationExpanderPlugin(),
206
            new StateMachineAclEntityConfigurationExpanderPlugin(),
207
            new StockAclEntityConfigurationExpanderPlugin(),
208
            new StoreAclEntityConfigurationExpanderPlugin(),
209
            new TaxAclEntityConfigurationExpanderPlugin(),
210
            new UrlAclEntityConfigurationExpanderPlugin(),
211
            new UserPasswordResetAclEntityConfigurationExpanderPlugin(),
212
        ];
213
    }
214
}
215