AkeneoPimMiddlewareConnectorDependencyProvider   A
last analyzed

Complexity

Total Complexity 38

Size/Duplication

Total Lines 1197
Duplicated Lines 0 %

Importance

Changes 4
Bugs 0 Features 1
Metric Value
eloc 385
c 4
b 0
f 1
dl 0
loc 1197
rs 9.36
wmc 38

38 Methods

Rating   Name   Duplication   Size   Complexity  
A addDefaultProductModelImportStagePlugins() 0 13 1
A addProductImportProcessPlugins() 0 32 1
A addAttributeDataImporterPlugin() 0 3 1
A addProductAbstractDataImporterPlugin() 0 3 1
A getAkeneoPimProcessesPlugins() 0 13 1
A addLocaleMapImportProcessPlugins() 0 30 1
A addProductModelPreparationProcessPlugins() 0 29 1
A addProductConcreteDataImporterPlugin() 0 3 1
A addCategoryDataImporterPlugin() 0 3 1
A provideCommunicationLayerDependencies() 0 33 1
A providePersistenceLayerDependencies() 0 5 1
A addDefaultAkeneoPimTranslatorFunctions() 0 7 1
A addAkeneoPimProcesses() 0 7 1
A addTaxSetMapImportProcessPlugins() 0 30 1
A addDefaultCategoryImportStagePlugins() 0 12 1
A addServiceUtilText() 0 7 1
A addFacadeProcess() 0 7 1
A addFacadeProduct() 0 7 1
A addDefaultProductImportStagePlugins() 0 13 1
A addProductAbstractStoresDataImporterPlugin() 0 3 1
A getDefaultLoggerConfigPlugin() 0 3 1
A addSuperAttributeImportProcessPlugins() 0 30 1
A getDefaultAkeneoPimProcessesPlugins() 0 6 1
A addServiceAkeneoPim() 0 7 1
A getAkeneoPimTranslatorFunctionPlugins() 0 23 1
A addAttributeMapProcessPlugins() 0 32 1
A addProductPreparationProcessPlugins() 0 29 1
A addDefaultLoggerConfigPlugin() 0 7 1
A addCategoryImportProcessPlugins() 0 31 1
A getDefaultAkeneoPimTranslatorFunctionPlugins() 0 6 1
A addDefaultAkeneoPimProcesses() 0 7 1
A addProductAbstractQuery() 0 7 1
A addProductPriceDataImporterPlugin() 0 3 1
A addAttributeImportProcessPlugins() 0 32 1
A addAkeneoPimTranslatorFunctions() 0 7 1
A addAkeneoPimValidators() 0 7 1
A addProductModelImportProcessPlugins() 0 32 1
A getAkeneoPimValidatorPlugins() 0 4 1
1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\AkeneoPimMiddlewareConnector;
9
10
use Orm\Zed\Product\Persistence\SpyProductAbstractQuery;
0 ignored issues
show
Bug introduced by
The type Orm\Zed\Product\Persiste...SpyProductAbstractQuery was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
use Spryker\Zed\Kernel\AbstractBundleDependencyProvider;
0 ignored issues
show
Bug introduced by
The type Spryker\Zed\Kernel\Abstr...undleDependencyProvider was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
use Spryker\Zed\Kernel\Container;
0 ignored issues
show
Bug introduced by
The type Spryker\Zed\Kernel\Container was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
13
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\AttributeMapMapperStagePlugin;
14
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\AttributeMapPreparationMapperStagePlugin;
15
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\AttributeMapTranslationStagePlugin;
16
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\CategoryImportTranslationStagePlugin;
17
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\CategoryMapperStagePlugin;
18
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\AttributeImportConfigurationPlugin;
19
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\AttributeMapConfigurationPlugin;
20
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\CategoryImportConfigurationPlugin;
21
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\DefaultCategoryImportConfigurationPlugin;
22
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\DefaultProductImportConfigurationPlugin;
23
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\DefaultProductModelImportConfigurationPlugin;
24
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\LocaleMapImportConfigurationPlugin;
25
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\ProductImportConfigurationPlugin;
26
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\ProductModelImportConfigurationPlugin;
27
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\ProductModelPreparationConfigurationPlugin;
28
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\ProductPreparationConfigurationPlugin;
29
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\SuperAttributeImportConfigurationPlugin;
30
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Configuration\TaxSetMapImportConfigurationPlugin;
31
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\DefaultCategoryImportTranslationStagePlugin;
32
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\DefaultCategoryMapperStagePlugin;
33
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\DefaultProductImportTranslationStagePlugin;
34
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\DefaultProductImportValidatorStagePlugin;
35
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\DefaultProductModelImportTranslationStagePlugin;
36
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\DefaultProductModelImportValidatorStagePlugin;
37
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\LocaleMapperStagePlugin;
38
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\ProductImportTranslationStagePlugin;
39
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\ProductMapperStagePlugin;
40
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\ProductModelImportMapperStagePlugin;
41
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\ProductModelImportTranslationStagePlugin;
42
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\AttributeAkeneoApiStreamPlugin;
43
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\AttributeWriteStreamPlugin;
44
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\CategoryAkeneoApiStreamPlugin;
45
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\CategoryWriteStreamPlugin;
46
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\JsonObjectWriteStreamPlugin;
47
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\JsonSuperAttributeWriteStreamPlugin;
48
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\LocaleStreamPlugin;
49
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\ProductAbstractWriteStreamPlugin;
50
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\ProductAkeneoApiStreamPlugin;
51
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\ProductConcreteWriteStreamPlugin;
52
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\ProductModelAkeneoApiStreamPlugin;
53
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\SuperAttributesAkeneoApiStreamPlugin;
54
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Stream\TaxSetStreamPlugin;
55
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TaxSetMapperStagePlugin;
56
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\AddAbstractSkuIfNotExistTranslatorFunctionPlugin;
57
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\AddAttributeOptionsTranslatorFunctionPlugin;
58
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\AddAttributeValuesTranslatorFunctionPlugin;
59
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\AddFamilyAttributeTranslatorFunctionPlugin;
60
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\AddMissingAttributesTranslatorFunctionPlugin;
61
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\AddMissingLocalesTranslatorFunctionPlugin;
62
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\AddUrlToLocalizedAttributesTranslatorFunctionPlugin;
63
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\AttributeEmptyTranslationToKeyTranslatorFunctionPlugin;
64
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\DefaultPriceSelectorTranslatorFunctionPlugin;
65
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\DefaultValuesToLocalizedAttributesTranslatorFunctionPlugin;
66
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\EnrichAttributesTranslatorFunctionPlugin;
67
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\LabelsToLocaleIdsTranslatorFunctionPlugin;
68
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\LabelsToLocalizedAttributeNamesTranslatorFunctionPlugin;
69
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\LocaleKeysToIdsTranslatorFunctionPlugin;
70
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\MarkAsSuperAttributeTranslatorFunctionPlugin;
71
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\MeasureUnitToIntTranslatorFunctionPlugin;
72
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\MoveLocalizedAttributesToAttributesTranslatorFunctionPlugin;
73
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\PriceSelectorTranslatorFunctionPlugin;
74
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\SkipItemsWithoutParentTranslatorFunctionPlugin;
75
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\ValuesToAttributesTranslatorFunctionPlugin;
76
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\TranslatorFunction\ValuesToLocalizedAttributesTranslatorFunctionPlugin;
77
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\Plugin\Validator\ProductAbstractExistValidatorPlugin;
78
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Dependency\Facade\AkeneoPimMiddlewareConnectorToProcessFacadeBridge;
79
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Dependency\Facade\AkeneoPimMiddlewareConnectorToProductFacadeBridge;
80
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Dependency\Facade\AkeneoPimMiddlewareConnectorToUtilTextBridge;
81
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Dependency\Service\AkeneoPimMiddlewareConnectorToAkeneoPimServiceBridge;
82
use SprykerMiddleware\Zed\Process\Communication\Plugin\Iterator\NullIteratorPlugin;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...ator\NullIteratorPlugin was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
83
use SprykerMiddleware\Zed\Process\Communication\Plugin\Log\MiddlewareLoggerConfigPlugin;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...ewareLoggerConfigPlugin was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
84
use SprykerMiddleware\Zed\Process\Communication\Plugin\Stream\JsonInputStreamPlugin;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...m\JsonInputStreamPlugin was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
85
use SprykerMiddleware\Zed\Process\Communication\Plugin\Stream\JsonOutputStreamPlugin;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...\JsonOutputStreamPlugin was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
86
use SprykerMiddleware\Zed\Process\Communication\Plugin\Stream\JsonRowInputStreamPlugin;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...sonRowInputStreamPlugin was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
87
use SprykerMiddleware\Zed\Process\Communication\Plugin\Stream\JsonRowOutputStreamPlugin;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...onRowOutputStreamPlugin was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
88
use SprykerMiddleware\Zed\Process\Communication\Plugin\StreamReaderStagePlugin;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...StreamReaderStagePlugin was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
89
use SprykerMiddleware\Zed\Process\Communication\Plugin\StreamWriterStagePlugin;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...StreamWriterStagePlugin was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
90
use SprykerMiddleware\Zed\Process\Dependency\Plugin\Log\MiddlewareLoggerConfigPluginInterface;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...erConfigPluginInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
91
92
/**
93
 * @method \SprykerEco\Zed\AkeneoPimMiddlewareConnector\AkeneoPimMiddlewareConnectorConfig getConfig()
94
 */
95
class AkeneoPimMiddlewareConnectorDependencyProvider extends AbstractBundleDependencyProvider
96
{
97
    /**
98
     * @var string
99
     */
100
    public const SERVICE_AKENEO_PIM = 'SERVICE_AKENEO_PIM';
101
102
    /**
103
     * @var string
104
     */
105
    public const SERVICE_UTIL_TEXT = 'SERVICE_UTIL_TEXT';
106
107
    /**
108
     * @var string
109
     */
110
    public const FACADE_PROCESS = 'FACADE_PROCESS';
111
112
    /**
113
     * @var string
114
     */
115
    public const FACADE_PRODUCT = 'FACADE_PRODUCT';
116
117
    /**
118
     * @var string
119
     */
120
    public const DEFAULT_AKENEO_PIM_MIDDLEWARE_PROCESSES = 'DEFAULT_AKENEO_PIM_MIDDLEWARE_PROCESSES';
121
122
    /**
123
     * @var string
124
     */
125
    public const DEFAULT_AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS = 'DEFAULT_AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS';
126
127
    /**
128
     * @var string
129
     */
130
    public const PRODUCT_ABSTRACT_QUERY = 'PRODUCT_ABSTRACT_QUERY';
131
132
    /**
133
     * @var string
134
     */
135
    public const URL_GENERATOR_STRATEGY = 'URL_GENERATOR_STRATEGY';
136
137
    /**
138
     * @var string
139
     */
140
    public const AKENEO_PIM_MIDDLEWARE_PROCESSES = 'AKENEO_PIM_MIDDLEWARE_PROCESSES';
141
142
    /**
143
     * @var string
144
     */
145
    public const AKENEO_PIM_MIDDLEWARE_LOGGER_CONFIG = 'AKENEO_PIM_MIDDLEWARE_LOGGER_CONFIG';
146
147
    /**
148
     * @var string
149
     */
150
    public const AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS = 'AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS';
151
152
    /**
153
     * @var string
154
     */
155
    public const AKENEO_PIM_MIDDLEWARE_VALIDATORS = 'AKENEO_PIM_MIDDLEWARE_VALIDATORS';
156
157
    /**
158
     * @var string
159
     */
160
    public const AKENEO_PIM_MIDDLEWARE_CATEGORY_IMPORTER_PLUGIN = 'AKENEO_PIM_MIDDLEWARE_CATEGORY_IMPORTER_PLUGIN';
161
162
    /**
163
     * @var string
164
     */
165
    public const AKENEO_PIM_MIDDLEWARE_ATTRIBUTE_IMPORTER_PLUGIN = 'AKENEO_PIM_MIDDLEWARE_ATTRIBUTE_IMPORTER_PLUGIN';
166
167
    /**
168
     * @var string
169
     */
170
    public const AKENEO_PIM_MIDDLEWARE_PRODUCT_ABSTRACT_IMPORTER_PLUGIN = 'AKENEO_PIM_MIDDLEWARE_PRODUCT_ABSTRACT_IMPORTER_PLUGIN';
171
172
    /**
173
     * @var string
174
     */
175
    public const AKENEO_PIM_MIDDLEWARE_PRODUCT_CONCRETE_IMPORTER_PLUGIN = 'AKENEO_PIM_MIDDLEWARE_PRODUCT_CONCRETE_IMPORTER_PLUGIN';
176
177
    /**
178
     * @var string
179
     */
180
    public const AKENEO_PIM_MIDDLEWARE_PRODUCT_PRICE_IMPORTER_PLUGIN = 'AKENEO_PIM_MIDDLEWARE_PRODUCT_PRICE_IMPORTER_PLUGIN';
181
182
    /**
183
     * @var string
184
     */
185
    public const AKENEO_PIM_MIDDLEWARE_PRODUCT_ABSTRACT_STORES_IMPORTER_PLUGIN = 'AKENEO_PIM_MIDDLEWARE_PRODUCT_ABSTRACT_STORES_IMPORTER_PLUGIN';
186
187
    /**
188
     * @var string
189
     */
190
    public const ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN = 'ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN';
191
192
    /**
193
     * @var string
194
     */
195
    public const ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN = 'ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN';
196
197
    /**
198
     * @var string
199
     */
200
    public const ATTRIBUTE_IMPORT_ITERATOR_PLUGIN = 'ATTRIBUTE_IMPORT_ITERATOR_PLUGIN';
201
202
    /**
203
     * @var string
204
     */
205
    public const ATTRIBUTE_IMPORT_STAGE_PLUGINS = 'ATTRIBUTE_IMPORT_STAGE_PLUGINS';
206
207
    /**
208
     * @var string
209
     */
210
    public const ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS = 'ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS';
211
212
    /**
213
     * @var string
214
     */
215
    public const ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS = 'ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS';
216
217
    /**
218
     * @var string
219
     */
220
    public const ATTRIBUTE_MAP_INPUT_STREAM_PLUGIN = 'ATTRIBUTE_MAP_INPUT_STREAM_PLUGIN';
221
222
    /**
223
     * @var string
224
     */
225
    public const ATTRIBUTE_MAP_OUTPUT_STREAM_PLUGIN = 'ATTRIBUTE_MAP_OUTPUT_STREAM_PLUGIN';
226
227
    /**
228
     * @var string
229
     */
230
    public const ATTRIBUTE_MAP_ITERATOR_PLUGIN = 'ATTRIBUTE_MAP_ITERATOR_PLUGIN';
231
232
    /**
233
     * @var string
234
     */
235
    public const ATTRIBUTE_MAP_STAGE_PLUGINS = 'ATTRIBUTE_MAP_STAGE_PLUGINS';
236
237
    /**
238
     * @var string
239
     */
240
    public const ATTRIBUTE_MAP_PRE_PROCESSOR_PLUGINS = 'ATTRIBUTE_MAP_PRE_PROCESSOR_PLUGINS';
241
242
    /**
243
     * @var string
244
     */
245
    public const ATTRIBUTE_MAP_POST_PROCESSOR_PLUGINS = 'ATTRIBUTE_MAP_POST_PROCESSOR_PLUGINS';
246
247
    /**
248
     * @var string
249
     */
250
    public const CATEGORY_IMPORT_INPUT_STREAM_PLUGIN = 'CATEGORY_IMPORT_INPUT_STREAM_PLUGIN';
251
252
    /**
253
     * @var string
254
     */
255
    public const CATEGORY_IMPORT_OUTPUT_STREAM_PLUGIN = 'CATEGORY_IMPORT_OUTPUT_STREAM_PLUGIN';
256
257
    /**
258
     * @var string
259
     */
260
    public const CATEGORY_IMPORT_ITERATOR_PLUGIN = 'CATEGORY_IMPORT_ITERATOR_PLUGIN';
261
262
    /**
263
     * @var string
264
     */
265
    public const CATEGORY_IMPORT_STAGE_PLUGINS = 'CATEGORY_IMPORT_STAGE_PLUGINS';
266
267
    /**
268
     * @var string
269
     */
270
    public const CATEGORY_IMPORT_PRE_PROCESSOR_PLUGINS = 'CATEGORY_IMPORT_PRE_PROCESSOR_PLUGINS';
271
272
    /**
273
     * @var string
274
     */
275
    public const CATEGORY_IMPORT_POST_PROCESSOR_PLUGINS = 'CATEGORY_IMPORT_POST_PROCESSOR_PLUGINS';
276
277
    /**
278
     * @var string
279
     */
280
    public const LOCALE_MAP_IMPORT_INPUT_STREAM_PLUGIN = 'LOCALE_MAP_IMPORT_INPUT_STREAM_PLUGIN';
281
282
    /**
283
     * @var string
284
     */
285
    public const LOCALE_MAP_IMPORT_OUTPUT_STREAM_PLUGIN = 'LOCALE_MAP_IMPORT_OUTPUT_STREAM_PLUGIN';
286
287
    /**
288
     * @var string
289
     */
290
    public const LOCALE_MAP_IMPORT_ITERATOR_PLUGIN = 'LOCALE_MAP_IMPORT_ITERATOR_PLUGIN';
291
292
    /**
293
     * @var string
294
     */
295
    public const LOCALE_MAP_IMPORT_STAGE_PLUGINS = 'LOCALE_MAP_IMPORT_STAGE_PLUGINS';
296
297
    /**
298
     * @var string
299
     */
300
    public const LOCALE_MAP_IMPORT_PRE_PROCESSOR_PLUGINS = 'LOCALE_MAP_IMPORT_PRE_PROCESSOR_PLUGINS';
301
302
    /**
303
     * @var string
304
     */
305
    public const LOCALE_MAP_IMPORT_POST_PROCESSOR_PLUGINS = 'LOCALE_MAP_IMPORT_POST_PROCESSOR_PLUGINS';
306
307
    /**
308
     * @var string
309
     */
310
    public const PRODUCT_IMPORT_INPUT_STREAM_PLUGIN = 'PRODUCT_IMPORT_INPUT_STREAM_PLUGIN';
311
312
    /**
313
     * @var string
314
     */
315
    public const PRODUCT_IMPORT_OUTPUT_STREAM_PLUGIN = 'PRODUCT_IMPORT_OUTPUT_STREAM_PLUGIN';
316
317
    /**
318
     * @var string
319
     */
320
    public const PRODUCT_IMPORT_ITERATOR_PLUGIN = 'PRODUCT_IMPORT_ITERATOR_PLUGIN';
321
322
    /**
323
     * @var string
324
     */
325
    public const PRODUCT_IMPORT_STAGE_PLUGINS = 'PRODUCT_IMPORT_STAGE_PLUGINS';
326
327
    /**
328
     * @var string
329
     */
330
    public const PRODUCT_IMPORT_PRE_PROCESSOR_PLUGINS = 'PRODUCT_IMPORT_PRE_PROCESSOR_PLUGINS';
331
332
    /**
333
     * @var string
334
     */
335
    public const PRODUCT_IMPORT_POST_PROCESSOR_PLUGINS = 'PRODUCT_IMPORT_POST_PROCESSOR_PLUGINS';
336
337
    /**
338
     * @var string
339
     */
340
    public const PRODUCT_MODEL_IMPORT_INPUT_STREAM_PLUGIN = 'PRODUCT_MODEL_IMPORT_INPUT_STREAM_PLUGIN';
341
342
    /**
343
     * @var string
344
     */
345
    public const PRODUCT_MODEL_IMPORT_OUTPUT_STREAM_PLUGIN = 'PRODUCT_MODEL_IMPORT_OUTPUT_STREAM_PLUGIN';
346
347
    /**
348
     * @var string
349
     */
350
    public const PRODUCT_MODEL_IMPORT_ITERATOR_PLUGIN = 'PRODUCT_MODEL_IMPORT_ITERATOR_PLUGIN';
351
352
    /**
353
     * @var string
354
     */
355
    public const PRODUCT_MODEL_IMPORT_STAGE_PLUGINS = 'PRODUCT_MODEL_IMPORT_STAGE_PLUGINS';
356
357
    /**
358
     * @var string
359
     */
360
    public const PRODUCT_MODEL_IMPORT_PRE_PROCESSOR_PLUGINS = 'PRODUCT_MODEL_IMPORT_PRE_PROCESSOR_PLUGINS';
361
362
    /**
363
     * @var string
364
     */
365
    public const PRODUCT_MODEL_IMPORT_POST_PROCESSOR_PLUGINS = 'PRODUCT_MODEL_IMPORT_POST_PROCESSOR_PLUGINS';
366
367
    /**
368
     * @var string
369
     */
370
    public const PRODUCT_PREPARATION_INPUT_STREAM_PLUGIN = 'PRODUCT_PREPARATION_INPUT_STREAM_PLUGIN';
371
372
    /**
373
     * @var string
374
     */
375
    public const PRODUCT_PREPARATION_OUTPUT_STREAM_PLUGIN = 'PRODUCT_PREPARATION_OUTPUT_STREAM_PLUGIN';
376
377
    /**
378
     * @var string
379
     */
380
    public const PRODUCT_PREPARATION_ITERATOR_PLUGIN = 'PRODUCT_PREPARATION_ITERATOR_PLUGIN';
381
382
    /**
383
     * @var string
384
     */
385
    public const PRODUCT_PREPARATION_STAGE_PLUGINS = 'PRODUCT_PREPARATION_STAGE_PLUGINS';
386
387
    /**
388
     * @var string
389
     */
390
    public const PRODUCT_PREPARATION_PRE_PROCESSOR_PLUGINS = 'PRODUCT_PREPARATION_PRE_PROCESSOR_PLUGINS';
391
392
    /**
393
     * @var string
394
     */
395
    public const PRODUCT_PREPARATION_POST_PROCESSOR_PLUGINS = 'PRODUCT_PREPARATION_POST_PROCESSOR_PLUGINS';
396
397
    /**
398
     * @var string
399
     */
400
    public const PRODUCT_MODEL_PREPARATION_INPUT_STREAM_PLUGIN = 'PRODUCT_MODEL_PREPARATION_INPUT_STREAM_PLUGIN';
401
402
    /**
403
     * @var string
404
     */
405
    public const PRODUCT_MODEL_PREPARATION_OUTPUT_STREAM_PLUGIN = 'PRODUCT_MODEL_PREPARATION_OUTPUT_STREAM_PLUGIN';
406
407
    /**
408
     * @var string
409
     */
410
    public const PRODUCT_MODEL_PREPARATION_ITERATOR_PLUGIN = 'PRODUCT_MODEL_PREPARATION_ITERATOR_PLUGIN';
411
412
    /**
413
     * @var string
414
     */
415
    public const PRODUCT_MODEL_PREPARATION_STAGE_PLUGINS = 'PRODUCT_MODEL_PREPARATION_STAGE_PLUGINS';
416
417
    /**
418
     * @var string
419
     */
420
    public const PRODUCT_MODEL_PREPARATION_PRE_PROCESSOR_PLUGINS = 'PRODUCT_MODEL_PREPARATION_PRE_PROCESSOR_PLUGINS';
421
422
    /**
423
     * @var string
424
     */
425
    public const PRODUCT_MODEL_PREPARATION_POST_PROCESSOR_PLUGINS = 'PRODUCT_MODEL_PREPARATION_POST_PROCESSOR_PLUGINS';
426
427
    /**
428
     * @var string
429
     */
430
    public const SUPER_ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN = 'SUPER_ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN';
431
432
    /**
433
     * @var string
434
     */
435
    public const SUPER_ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN = 'SUPER_ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN';
436
437
    /**
438
     * @var string
439
     */
440
    public const SUPER_ATTRIBUTE_IMPORT_ITERATOR_PLUGIN = 'SUPER_ATTRIBUTE_IMPORT_ITERATOR_PLUGIN';
441
442
    /**
443
     * @var string
444
     */
445
    public const SUPER_ATTRIBUTE_IMPORT_STAGE_PLUGINS = 'SUPER_ATTRIBUTE_IMPORT_STAGE_PLUGINS';
446
447
    /**
448
     * @var string
449
     */
450
    public const SUPER_ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS = 'SUPER_ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS';
451
452
    /**
453
     * @var string
454
     */
455
    public const SUPER_ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS = 'SUPER_ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS';
456
457
    /**
458
     * @var string
459
     */
460
    public const TAX_SET_MAP_IMPORT_INPUT_STREAM_PLUGIN = 'TAX_SET_MAP_IMPORT_INPUT_STREAM_PLUGIN';
461
462
    /**
463
     * @var string
464
     */
465
    public const TAX_SET_MAP_IMPORT_OUTPUT_STREAM_PLUGIN = 'TAX_SET_MAP_IMPORT_OUTPUT_STREAM_PLUGIN';
466
467
    /**
468
     * @var string
469
     */
470
    public const TAX_SET_MAP_IMPORT_ITERATOR_PLUGIN = 'TAX_SET_MAP_IMPORT_ITERATOR_PLUGIN';
471
472
    /**
473
     * @var string
474
     */
475
    public const TAX_SET_MAP_IMPORT_STAGE_PLUGINS = 'TAX_SET_MAP_IMPORT_STAGE_PLUGINS';
476
477
    /**
478
     * @var string
479
     */
480
    public const TAX_SET_MAP_IMPORT_PRE_PROCESSOR_PLUGINS = 'TAX_SET_MAP_IMPORT_PRE_PROCESSOR_PLUGINS';
481
482
    /**
483
     * @var string
484
     */
485
    public const TAX_SET_MAP_IMPORT_POST_PROCESSOR_PLUGINS = 'TAX_SET_MAP_IMPORT_POST_PROCESSOR_PLUGINS';
486
487
    /**
488
     * @var string
489
     */
490
    public const DEFAULT_CATEGORY_IMPORT_STAGE_PLUGINS = 'DEFAULT_CATEGORY_IMPORT_STAGE_PLUGINS';
491
492
    /**
493
     * @var string
494
     */
495
    public const DEFAULT_PRODUCT_MODEL_IMPORT_STAGE_PLUGINS = 'DEFAULT_PRODUCT_MODEL_IMPORT_STAGE_PLUGINS';
496
497
    /**
498
     * @var string
499
     */
500
    public const DEFAULT_PRODUCT_IMPORT_STAGE_PLUGINS = 'DEFAULT_PRODUCT_IMPORT_STAGE_PLUGINS';
501
502
    /**
503
     * @param \Spryker\Zed\Kernel\Container $container
504
     *
505
     * @return \Spryker\Zed\Kernel\Container
506
     */
507
    public function provideCommunicationLayerDependencies(Container $container): Container
508
    {
509
        $container = $this->addServiceAkeneoPim($container);
510
        $container = $this->addFacadeProcess($container);
511
        $container = $this->addFacadeProduct($container);
512
        $container = $this->addServiceUtilText($container);
513
        $container = $this->addCategoryDataImporterPlugin($container);
514
        $container = $this->addAttributeDataImporterPlugin($container);
515
        $container = $this->addProductAbstractDataImporterPlugin($container);
516
        $container = $this->addProductConcreteDataImporterPlugin($container);
517
        $container = $this->addDefaultLoggerConfigPlugin($container);
518
        $container = $this->addAkeneoPimProcesses($container);
519
        $container = $this->addDefaultAkeneoPimProcesses($container);
520
        $container = $this->addAkeneoPimTranslatorFunctions($container);
521
        $container = $this->addAkeneoPimValidators($container);
522
        $container = $this->addDefaultAkeneoPimTranslatorFunctions($container);
523
        $container = $this->addAttributeImportProcessPlugins($container);
524
        $container = $this->addAttributeMapProcessPlugins($container);
525
        $container = $this->addCategoryImportProcessPlugins($container);
526
        $container = $this->addLocaleMapImportProcessPlugins($container);
527
        $container = $this->addProductImportProcessPlugins($container);
528
        $container = $this->addProductModelImportProcessPlugins($container);
529
        $container = $this->addProductModelPreparationProcessPlugins($container);
530
        $container = $this->addProductPreparationProcessPlugins($container);
531
        $container = $this->addTaxSetMapImportProcessPlugins($container);
532
        $container = $this->addSuperAttributeImportProcessPlugins($container);
533
        $container = $this->addDefaultCategoryImportStagePlugins($container);
534
        $container = $this->addDefaultProductImportStagePlugins($container);
535
        $container = $this->addDefaultProductModelImportStagePlugins($container);
536
        $container = $this->addProductPriceDataImporterPlugin($container);
537
        $container = $this->addProductAbstractStoresDataImporterPlugin($container);
538
539
        return $container;
540
    }
541
542
    /**
543
     * @param \Spryker\Zed\Kernel\Container $container
544
     *
545
     * @return \Spryker\Zed\Kernel\Container
546
     */
547
    public function providePersistenceLayerDependencies(Container $container): Container
548
    {
549
        $container = $this->addProductAbstractQuery($container);
550
551
        return $container;
552
    }
553
554
    /**
555
     * @param \Spryker\Zed\Kernel\Container $container
556
     *
557
     * @return \Spryker\Zed\Kernel\Container
558
     */
559
    protected function addAkeneoPimProcesses(Container $container): Container
560
    {
561
        $container->set(static::AKENEO_PIM_MIDDLEWARE_PROCESSES, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

561
        $container->set(static::AKENEO_PIM_MIDDLEWARE_PROCESSES, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
562
            return $this->getAkeneoPimProcessesPlugins();
563
        });
564
565
        return $container;
566
    }
567
568
    /**
569
     * @param \Spryker\Zed\Kernel\Container $container
570
     *
571
     * @return \Spryker\Zed\Kernel\Container
572
     */
573
    protected function addServiceAkeneoPim(Container $container): Container
574
    {
575
        $container->set(static::SERVICE_AKENEO_PIM, function (Container $container) {
576
            return new AkeneoPimMiddlewareConnectorToAkeneoPimServiceBridge($container->getLocator()->akeneoPim()->service());
577
        });
578
579
        return $container;
580
    }
581
582
    /**
583
     * @param \Spryker\Zed\Kernel\Container $container
584
     *
585
     * @return \Spryker\Zed\Kernel\Container
586
     */
587
    protected function addFacadeProcess(Container $container): Container
588
    {
589
        $container->set(static::FACADE_PROCESS, function (Container $container) {
590
            return new AkeneoPimMiddlewareConnectorToProcessFacadeBridge($container->getLocator()->process()->facade());
591
        });
592
593
        return $container;
594
    }
595
596
    /**
597
     * @param \Spryker\Zed\Kernel\Container $container
598
     *
599
     * @return \Spryker\Zed\Kernel\Container
600
     */
601
    protected function addFacadeProduct(Container $container): Container
602
    {
603
        $container->set(static::FACADE_PRODUCT, function (Container $container) {
604
            return new AkeneoPimMiddlewareConnectorToProductFacadeBridge($container->getLocator()->product()->facade());
605
        });
606
607
        return $container;
608
    }
609
610
    /**
611
     * @param \Spryker\Zed\Kernel\Container $container
612
     *
613
     * @return \Spryker\Zed\Kernel\Container
614
     */
615
    protected function addServiceUtilText(Container $container): Container
616
    {
617
        $container->set(static::SERVICE_UTIL_TEXT, function (Container $container) {
618
            return new AkeneoPimMiddlewareConnectorToUtilTextBridge($container->getLocator()->utilText()->service());
619
        });
620
621
        return $container;
622
    }
623
624
    /**
625
     * @return array<\SprykerMiddleware\Zed\Process\Dependency\Plugin\Configuration\ProcessConfigurationPluginInterface>
626
     */
627
    protected function getAkeneoPimProcessesPlugins(): array
628
    {
629
        return [
630
            new AttributeImportConfigurationPlugin(),
631
            new AttributeMapConfigurationPlugin(),
632
            new CategoryImportConfigurationPlugin(),
633
            new LocaleMapImportConfigurationPlugin(),
634
            new ProductImportConfigurationPlugin(),
635
            new ProductModelImportConfigurationPlugin(),
636
            new ProductModelPreparationConfigurationPlugin(),
637
            new ProductPreparationConfigurationPlugin(),
638
            new SuperAttributeImportConfigurationPlugin(),
639
            new TaxSetMapImportConfigurationPlugin(),
640
        ];
641
    }
642
643
    /**
644
     * @param \Spryker\Zed\Kernel\Container $container
645
     *
646
     * @return \Spryker\Zed\Kernel\Container
647
     */
648
    protected function addDefaultAkeneoPimProcesses(Container $container): Container
649
    {
650
        $container->set(static::DEFAULT_AKENEO_PIM_MIDDLEWARE_PROCESSES, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

650
        $container->set(static::DEFAULT_AKENEO_PIM_MIDDLEWARE_PROCESSES, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
651
            return $this->getDefaultAkeneoPimProcessesPlugins();
652
        });
653
654
        return $container;
655
    }
656
657
    /**
658
     * @return array<\SprykerMiddleware\Zed\Process\Dependency\Plugin\Configuration\ProcessConfigurationPluginInterface>
659
     */
660
    protected function getDefaultAkeneoPimProcessesPlugins(): array
661
    {
662
        return [
663
            new DefaultCategoryImportConfigurationPlugin(),
664
            new DefaultProductImportConfigurationPlugin(),
665
            new DefaultProductModelImportConfigurationPlugin(),
666
        ];
667
    }
668
669
    /**
670
     * @param \Spryker\Zed\Kernel\Container $container
671
     *
672
     * @return \Spryker\Zed\Kernel\Container
673
     */
674
    protected function addDefaultLoggerConfigPlugin($container): Container
675
    {
676
        $container->set(static::AKENEO_PIM_MIDDLEWARE_LOGGER_CONFIG, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

676
        $container->set(static::AKENEO_PIM_MIDDLEWARE_LOGGER_CONFIG, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
677
            return $this->getDefaultLoggerConfigPlugin();
678
        });
679
680
        return $container;
681
    }
682
683
    /**
684
     * @return \SprykerMiddleware\Zed\Process\Dependency\Plugin\Log\MiddlewareLoggerConfigPluginInterface
685
     */
686
    protected function getDefaultLoggerConfigPlugin(): MiddlewareLoggerConfigPluginInterface
687
    {
688
        return new MiddlewareLoggerConfigPlugin();
689
    }
690
691
    /**
692
     * @param \Spryker\Zed\Kernel\Container $container
693
     *
694
     * @return \Spryker\Zed\Kernel\Container
695
     */
696
    protected function addAttributeImportProcessPlugins(Container $container): Container
697
    {
698
        $container->set(static::ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

698
        $container->set(static::ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
699
            return new AttributeAkeneoApiStreamPlugin();
700
        });
701
        $container->set(static::ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

701
        $container->set(static::ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
702
            return new AttributeWriteStreamPlugin();
703
        });
704
705
        $container->set(static::ATTRIBUTE_IMPORT_ITERATOR_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

705
        $container->set(static::ATTRIBUTE_IMPORT_ITERATOR_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
706
            return new NullIteratorPlugin();
707
        });
708
709
        $container->set(static::ATTRIBUTE_IMPORT_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

709
        $container->set(static::ATTRIBUTE_IMPORT_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
710
            return [
711
                new StreamReaderStagePlugin(),
712
                new AttributeMapPreparationMapperStagePlugin(),
713
                new AttributeMapTranslationStagePlugin(),
714
                new AttributeMapMapperStagePlugin(),
715
                new StreamWriterStagePlugin(),
716
            ];
717
        });
718
719
        $container->set(static::ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

719
        $container->set(static::ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
720
            return [];
721
        });
722
723
        $container->set(static::ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

723
        $container->set(static::ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
724
            return [];
725
        });
726
727
        return $container;
728
    }
729
730
    /**
731
     * @param \Spryker\Zed\Kernel\Container $container
732
     *
733
     * @return \Spryker\Zed\Kernel\Container
734
     */
735
    protected function addAttributeMapProcessPlugins(Container $container): Container
736
    {
737
        $container->set(static::ATTRIBUTE_MAP_INPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

737
        $container->set(static::ATTRIBUTE_MAP_INPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
738
            return new AttributeAkeneoApiStreamPlugin();
739
        });
740
        $container->set(static::ATTRIBUTE_MAP_OUTPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

740
        $container->set(static::ATTRIBUTE_MAP_OUTPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
741
            return new JsonOutputStreamPlugin();
742
        });
743
744
        $container->set(static::ATTRIBUTE_MAP_ITERATOR_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

744
        $container->set(static::ATTRIBUTE_MAP_ITERATOR_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
745
            return new NullIteratorPlugin();
746
        });
747
748
        $container->set(static::ATTRIBUTE_MAP_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

748
        $container->set(static::ATTRIBUTE_MAP_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
749
            return [
750
                new StreamReaderStagePlugin(),
751
                new AttributeMapPreparationMapperStagePlugin(),
752
                new AttributeMapTranslationStagePlugin(),
753
                new AttributeMapMapperStagePlugin(),
754
                new StreamWriterStagePlugin(),
755
            ];
756
        });
757
758
        $container->set(static::ATTRIBUTE_MAP_PRE_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

758
        $container->set(static::ATTRIBUTE_MAP_PRE_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
759
            return [];
760
        });
761
762
        $container->set(static::ATTRIBUTE_MAP_POST_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

762
        $container->set(static::ATTRIBUTE_MAP_POST_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
763
            return [];
764
        });
765
766
        return $container;
767
    }
768
769
    /**
770
     * @param \Spryker\Zed\Kernel\Container $container
771
     *
772
     * @return \Spryker\Zed\Kernel\Container
773
     */
774
    protected function addCategoryImportProcessPlugins(Container $container): Container
775
    {
776
        $container->set(static::CATEGORY_IMPORT_INPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

776
        $container->set(static::CATEGORY_IMPORT_INPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
777
            return new CategoryAkeneoApiStreamPlugin();
778
        });
779
        $container->set(static::CATEGORY_IMPORT_OUTPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

779
        $container->set(static::CATEGORY_IMPORT_OUTPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
780
            return new CategoryWriteStreamPlugin();
781
        });
782
783
        $container->set(static::CATEGORY_IMPORT_ITERATOR_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

783
        $container->set(static::CATEGORY_IMPORT_ITERATOR_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
784
            return new NullIteratorPlugin();
785
        });
786
787
        $container->set(static::CATEGORY_IMPORT_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

787
        $container->set(static::CATEGORY_IMPORT_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
788
            return [
789
                new StreamReaderStagePlugin(),
790
                new CategoryMapperStagePlugin(),
791
                new CategoryImportTranslationStagePlugin(),
792
                new StreamWriterStagePlugin(),
793
            ];
794
        });
795
796
        $container->set(static::CATEGORY_IMPORT_PRE_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

796
        $container->set(static::CATEGORY_IMPORT_PRE_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
797
            return [];
798
        });
799
800
        $container->set(static::CATEGORY_IMPORT_POST_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

800
        $container->set(static::CATEGORY_IMPORT_POST_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
801
            return [];
802
        });
803
804
        return $container;
805
    }
806
807
    /**
808
     * @param \Spryker\Zed\Kernel\Container $container
809
     *
810
     * @return \Spryker\Zed\Kernel\Container
811
     */
812
    protected function addLocaleMapImportProcessPlugins(Container $container): Container
813
    {
814
        $container->set(static::LOCALE_MAP_IMPORT_INPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

814
        $container->set(static::LOCALE_MAP_IMPORT_INPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
815
            return new LocaleStreamPlugin();
816
        });
817
        $container->set(static::LOCALE_MAP_IMPORT_OUTPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

817
        $container->set(static::LOCALE_MAP_IMPORT_OUTPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
818
            return new JsonObjectWriteStreamPlugin();
819
        });
820
821
        $container->set(static::LOCALE_MAP_IMPORT_ITERATOR_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

821
        $container->set(static::LOCALE_MAP_IMPORT_ITERATOR_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
822
            return new NullIteratorPlugin();
823
        });
824
825
        $container->set(static::LOCALE_MAP_IMPORT_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

825
        $container->set(static::LOCALE_MAP_IMPORT_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
826
            return [
827
                new StreamReaderStagePlugin(),
828
                new LocaleMapperStagePlugin(),
829
                new StreamWriterStagePlugin(),
830
            ];
831
        });
832
833
        $container->set(static::LOCALE_MAP_IMPORT_PRE_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

833
        $container->set(static::LOCALE_MAP_IMPORT_PRE_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
834
            return [];
835
        });
836
837
        $container->set(static::LOCALE_MAP_IMPORT_POST_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

837
        $container->set(static::LOCALE_MAP_IMPORT_POST_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
838
            return [];
839
        });
840
841
        return $container;
842
    }
843
844
    /**
845
     * @param \Spryker\Zed\Kernel\Container $container
846
     *
847
     * @return \Spryker\Zed\Kernel\Container
848
     */
849
    protected function addProductImportProcessPlugins(Container $container): Container
850
    {
851
        $container->set(static::PRODUCT_IMPORT_INPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

851
        $container->set(static::PRODUCT_IMPORT_INPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
852
            return new JsonRowInputStreamPlugin();
853
        });
854
        $container->set(static::PRODUCT_IMPORT_OUTPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

854
        $container->set(static::PRODUCT_IMPORT_OUTPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
855
            return new ProductConcreteWriteStreamPlugin();
856
        });
857
858
        $container->set(static::PRODUCT_IMPORT_ITERATOR_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

858
        $container->set(static::PRODUCT_IMPORT_ITERATOR_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
859
            return new NullIteratorPlugin();
860
        });
861
862
        $container->set(static::PRODUCT_IMPORT_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

862
        $container->set(static::PRODUCT_IMPORT_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
863
            return [
864
                new StreamReaderStagePlugin(),
865
                new DefaultProductImportValidatorStagePlugin(),
866
                new ProductImportTranslationStagePlugin(),
867
                new ProductMapperStagePlugin(),
868
                new StreamWriterStagePlugin(),
869
            ];
870
        });
871
872
        $container->set(static::PRODUCT_IMPORT_PRE_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

872
        $container->set(static::PRODUCT_IMPORT_PRE_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
873
            return [];
874
        });
875
876
        $container->set(static::PRODUCT_IMPORT_POST_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

876
        $container->set(static::PRODUCT_IMPORT_POST_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
877
            return [];
878
        });
879
880
        return $container;
881
    }
882
883
    /**
884
     * @param \Spryker\Zed\Kernel\Container $container
885
     *
886
     * @return \Spryker\Zed\Kernel\Container
887
     */
888
    protected function addProductModelImportProcessPlugins(Container $container): Container
889
    {
890
        $container->set(static::PRODUCT_MODEL_IMPORT_INPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

890
        $container->set(static::PRODUCT_MODEL_IMPORT_INPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
891
            return new JsonInputStreamPlugin();
892
        });
893
        $container->set(static::PRODUCT_MODEL_IMPORT_OUTPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

893
        $container->set(static::PRODUCT_MODEL_IMPORT_OUTPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
894
            return new ProductAbstractWriteStreamPlugin();
895
        });
896
897
        $container->set(static::PRODUCT_MODEL_IMPORT_ITERATOR_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

897
        $container->set(static::PRODUCT_MODEL_IMPORT_ITERATOR_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
898
            return new NullIteratorPlugin();
899
        });
900
901
        $container->set(static::PRODUCT_MODEL_IMPORT_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

901
        $container->set(static::PRODUCT_MODEL_IMPORT_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
902
            return [
903
                new StreamReaderStagePlugin(),
904
                new DefaultProductModelImportValidatorStagePlugin(),
905
                new ProductModelImportTranslationStagePlugin(),
906
                new ProductModelImportMapperStagePlugin(),
907
                new StreamWriterStagePlugin(),
908
            ];
909
        });
910
911
        $container->set(static::PRODUCT_MODEL_IMPORT_PRE_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

911
        $container->set(static::PRODUCT_MODEL_IMPORT_PRE_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
912
            return [];
913
        });
914
915
        $container->set(static::PRODUCT_MODEL_IMPORT_POST_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

915
        $container->set(static::PRODUCT_MODEL_IMPORT_POST_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
916
            return [];
917
        });
918
919
        return $container;
920
    }
921
922
    /**
923
     * @param \Spryker\Zed\Kernel\Container $container
924
     *
925
     * @return \Spryker\Zed\Kernel\Container
926
     */
927
    protected function addProductPreparationProcessPlugins(Container $container): Container
928
    {
929
        $container->set(static::PRODUCT_PREPARATION_INPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

929
        $container->set(static::PRODUCT_PREPARATION_INPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
930
            return new ProductAkeneoApiStreamPlugin();
931
        });
932
        $container->set(static::PRODUCT_PREPARATION_OUTPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

932
        $container->set(static::PRODUCT_PREPARATION_OUTPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
933
            return new JsonRowOutputStreamPlugin();
934
        });
935
936
        $container->set(static::PRODUCT_PREPARATION_ITERATOR_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

936
        $container->set(static::PRODUCT_PREPARATION_ITERATOR_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
937
            return new NullIteratorPlugin();
938
        });
939
940
        $container->set(static::PRODUCT_PREPARATION_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

940
        $container->set(static::PRODUCT_PREPARATION_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
941
            return [
942
                new StreamReaderStagePlugin(),
943
                new StreamWriterStagePlugin(),
944
            ];
945
        });
946
947
        $container->set(static::PRODUCT_PREPARATION_PRE_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

947
        $container->set(static::PRODUCT_PREPARATION_PRE_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
948
            return [];
949
        });
950
951
        $container->set(static::PRODUCT_PREPARATION_POST_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

951
        $container->set(static::PRODUCT_PREPARATION_POST_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
952
            return [];
953
        });
954
955
        return $container;
956
    }
957
958
    /**
959
     * @param \Spryker\Zed\Kernel\Container $container
960
     *
961
     * @return \Spryker\Zed\Kernel\Container
962
     */
963
    protected function addProductModelPreparationProcessPlugins(Container $container): Container
964
    {
965
        $container->set(static::PRODUCT_MODEL_PREPARATION_INPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

965
        $container->set(static::PRODUCT_MODEL_PREPARATION_INPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
966
            return new ProductModelAkeneoApiStreamPlugin();
967
        });
968
        $container->set(static::PRODUCT_MODEL_PREPARATION_OUTPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

968
        $container->set(static::PRODUCT_MODEL_PREPARATION_OUTPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
969
            return new JsonOutputStreamPlugin();
970
        });
971
972
        $container->set(static::PRODUCT_MODEL_PREPARATION_ITERATOR_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

972
        $container->set(static::PRODUCT_MODEL_PREPARATION_ITERATOR_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
973
            return new NullIteratorPlugin();
974
        });
975
976
        $container->set(static::PRODUCT_MODEL_PREPARATION_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

976
        $container->set(static::PRODUCT_MODEL_PREPARATION_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
977
            return [
978
                new StreamReaderStagePlugin(),
979
                new StreamWriterStagePlugin(),
980
            ];
981
        });
982
983
        $container->set(static::PRODUCT_MODEL_PREPARATION_PRE_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

983
        $container->set(static::PRODUCT_MODEL_PREPARATION_PRE_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
984
            return [];
985
        });
986
987
        $container->set(static::PRODUCT_MODEL_PREPARATION_POST_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

987
        $container->set(static::PRODUCT_MODEL_PREPARATION_POST_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
988
            return [];
989
        });
990
991
        return $container;
992
    }
993
994
    /**
995
     * @param \Spryker\Zed\Kernel\Container $container
996
     *
997
     * @return \Spryker\Zed\Kernel\Container
998
     */
999
    protected function addTaxSetMapImportProcessPlugins(Container $container): Container
1000
    {
1001
        $container->set(static::TAX_SET_MAP_IMPORT_INPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1001
        $container->set(static::TAX_SET_MAP_IMPORT_INPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1002
            return new TaxSetStreamPlugin();
1003
        });
1004
        $container->set(static::TAX_SET_MAP_IMPORT_OUTPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1004
        $container->set(static::TAX_SET_MAP_IMPORT_OUTPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1005
            return new JsonObjectWriteStreamPlugin();
1006
        });
1007
1008
        $container->set(static::TAX_SET_MAP_IMPORT_ITERATOR_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1008
        $container->set(static::TAX_SET_MAP_IMPORT_ITERATOR_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1009
            return new NullIteratorPlugin();
1010
        });
1011
1012
        $container->set(static::TAX_SET_MAP_IMPORT_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1012
        $container->set(static::TAX_SET_MAP_IMPORT_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1013
            return [
1014
                new StreamReaderStagePlugin(),
1015
                new TaxSetMapperStagePlugin(),
1016
                new StreamWriterStagePlugin(),
1017
            ];
1018
        });
1019
1020
        $container->set(static::TAX_SET_MAP_IMPORT_PRE_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1020
        $container->set(static::TAX_SET_MAP_IMPORT_PRE_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1021
            return [];
1022
        });
1023
1024
        $container->set(static::TAX_SET_MAP_IMPORT_POST_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1024
        $container->set(static::TAX_SET_MAP_IMPORT_POST_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1025
            return [];
1026
        });
1027
1028
        return $container;
1029
    }
1030
1031
    /**
1032
     * @param \Spryker\Zed\Kernel\Container $container
1033
     *
1034
     * @return \Spryker\Zed\Kernel\Container
1035
     */
1036
    protected function addSuperAttributeImportProcessPlugins(Container $container): Container
1037
    {
1038
        $container->set(static::SUPER_ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1038
        $container->set(static::SUPER_ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1039
            return new SuperAttributesAkeneoApiStreamPlugin();
1040
        });
1041
1042
        $container->set(static::SUPER_ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1042
        $container->set(static::SUPER_ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1043
            return new JsonSuperAttributeWriteStreamPlugin();
1044
        });
1045
1046
        $container->set(static::SUPER_ATTRIBUTE_IMPORT_ITERATOR_PLUGIN, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1046
        $container->set(static::SUPER_ATTRIBUTE_IMPORT_ITERATOR_PLUGIN, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1047
            return new NullIteratorPlugin();
1048
        });
1049
1050
        $container->set(static::SUPER_ATTRIBUTE_IMPORT_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1050
        $container->set(static::SUPER_ATTRIBUTE_IMPORT_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1051
            return [
1052
                new StreamReaderStagePlugin(),
1053
                new StreamWriterStagePlugin(),
1054
            ];
1055
        });
1056
1057
        $container->set(static::SUPER_ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1057
        $container->set(static::SUPER_ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1058
            return [];
1059
        });
1060
1061
        $container->set(static::SUPER_ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1061
        $container->set(static::SUPER_ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1062
            return [];
1063
        });
1064
1065
        return $container;
1066
    }
1067
1068
    /**
1069
     * @param \Spryker\Zed\Kernel\Container $container
1070
     *
1071
     * @return \Spryker\Zed\Kernel\Container
1072
     */
1073
    protected function addAkeneoPimTranslatorFunctions($container): Container
1074
    {
1075
        $container->set(static::AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1075
        $container->set(static::AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1076
            return $this->getAkeneoPimTranslatorFunctionPlugins();
1077
        });
1078
1079
        return $container;
1080
    }
1081
1082
    /**
1083
     * @param \Spryker\Zed\Kernel\Container $container
1084
     *
1085
     * @return \Spryker\Zed\Kernel\Container
1086
     */
1087
    protected function addAkeneoPimValidators($container): Container
1088
    {
1089
        $container->set(static::AKENEO_PIM_MIDDLEWARE_VALIDATORS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1089
        $container->set(static::AKENEO_PIM_MIDDLEWARE_VALIDATORS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1090
            return $this->getAkeneoPimValidatorPlugins();
1091
        });
1092
1093
        return $container;
1094
    }
1095
1096
    /**
1097
     * @return array<\SprykerMiddleware\Zed\Process\Dependency\Plugin\TranslatorFunction\TranslatorFunctionPluginInterface>
1098
     */
1099
    protected function getAkeneoPimTranslatorFunctionPlugins(): array
1100
    {
1101
        return [
1102
            new AddAbstractSkuIfNotExistTranslatorFunctionPlugin(),
1103
            new AddAttributeOptionsTranslatorFunctionPlugin(),
1104
            new AddAttributeValuesTranslatorFunctionPlugin(),
1105
            new AddFamilyAttributeTranslatorFunctionPlugin(),
1106
            new AddMissingAttributesTranslatorFunctionPlugin(),
1107
            new AddMissingLocalesTranslatorFunctionPlugin(),
1108
            new AddUrlToLocalizedAttributesTranslatorFunctionPlugin(),
1109
            new AttributeEmptyTranslationToKeyTranslatorFunctionPlugin(),
1110
            new EnrichAttributesTranslatorFunctionPlugin(),
1111
            new LabelsToLocalizedAttributeNamesTranslatorFunctionPlugin(),
1112
            new LocaleKeysToIdsTranslatorFunctionPlugin(),
1113
            new MarkAsSuperAttributeTranslatorFunctionPlugin(),
1114
            new MeasureUnitToIntTranslatorFunctionPlugin(),
1115
            new MoveLocalizedAttributesToAttributesTranslatorFunctionPlugin(),
1116
            new PriceSelectorTranslatorFunctionPlugin(),
1117
            new ValuesToAttributesTranslatorFunctionPlugin(),
1118
            new ValuesToLocalizedAttributesTranslatorFunctionPlugin(),
1119
            new MeasureUnitToIntTranslatorFunctionPlugin(),
1120
            new LabelsToLocaleIdsTranslatorFunctionPlugin(),
1121
            new SkipItemsWithoutParentTranslatorFunctionPlugin(),
1122
        ];
1123
    }
1124
1125
    /**
1126
     * @return array<\SprykerMiddleware\Zed\Process\Dependency\Plugin\Validator\GenericValidatorPluginInterface>
1127
     */
1128
    protected function getAkeneoPimValidatorPlugins(): array
1129
    {
1130
        return [
1131
            new ProductAbstractExistValidatorPlugin(),
1132
        ];
1133
    }
1134
1135
    /**
1136
     * @param \Spryker\Zed\Kernel\Container $container
1137
     *
1138
     * @return \Spryker\Zed\Kernel\Container
1139
     */
1140
    protected function addDefaultAkeneoPimTranslatorFunctions($container): Container
1141
    {
1142
        $container->set(static::DEFAULT_AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1142
        $container->set(static::DEFAULT_AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1143
            return $this->getDefaultAkeneoPimTranslatorFunctionPlugins();
1144
        });
1145
1146
        return $container;
1147
    }
1148
1149
    /**
1150
     * @return array<\SprykerMiddleware\Zed\Process\Dependency\Plugin\TranslatorFunction\TranslatorFunctionPluginInterface>
1151
     */
1152
    protected function getDefaultAkeneoPimTranslatorFunctionPlugins(): array
1153
    {
1154
        return [
1155
            new DefaultPriceSelectorTranslatorFunctionPlugin(),
1156
            new DefaultValuesToLocalizedAttributesTranslatorFunctionPlugin(),
1157
            new SkipItemsWithoutParentTranslatorFunctionPlugin(),
1158
        ];
1159
    }
1160
1161
    /**
1162
     * @param \Spryker\Zed\Kernel\Container $container
1163
     *
1164
     * @return \Spryker\Zed\Kernel\Container
1165
     */
1166
    protected function addCategoryDataImporterPlugin(Container $container): Container
1167
    {
1168
        return $container;
1169
    }
1170
1171
    /**
1172
     * @param \Spryker\Zed\Kernel\Container $container
1173
     *
1174
     * @return \Spryker\Zed\Kernel\Container
1175
     */
1176
    protected function addAttributeDataImporterPlugin(Container $container): Container
1177
    {
1178
        return $container;
1179
    }
1180
1181
    /**
1182
     * @param \Spryker\Zed\Kernel\Container $container
1183
     *
1184
     * @return \Spryker\Zed\Kernel\Container
1185
     */
1186
    protected function addProductAbstractDataImporterPlugin(Container $container): Container
1187
    {
1188
        return $container;
1189
    }
1190
1191
    /**
1192
     * @param \Spryker\Zed\Kernel\Container $container
1193
     *
1194
     * @return \Spryker\Zed\Kernel\Container
1195
     */
1196
    protected function addProductConcreteDataImporterPlugin(Container $container): Container
1197
    {
1198
        return $container;
1199
    }
1200
1201
    /**
1202
     * @param \Spryker\Zed\Kernel\Container $container
1203
     *
1204
     * @return \Spryker\Zed\Kernel\Container
1205
     */
1206
    protected function addProductPriceDataImporterPlugin(Container $container): Container
1207
    {
1208
        return $container;
1209
    }
1210
1211
    /**
1212
     * @param \Spryker\Zed\Kernel\Container $container
1213
     *
1214
     * @return \Spryker\Zed\Kernel\Container
1215
     */
1216
    protected function addProductAbstractStoresDataImporterPlugin(Container $container): Container
1217
    {
1218
        return $container;
1219
    }
1220
1221
    /**
1222
     * @param \Spryker\Zed\Kernel\Container $container
1223
     *
1224
     * @return \Spryker\Zed\Kernel\Container
1225
     */
1226
    protected function addDefaultCategoryImportStagePlugins($container): Container
1227
    {
1228
        $container->set(static::DEFAULT_CATEGORY_IMPORT_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1228
        $container->set(static::DEFAULT_CATEGORY_IMPORT_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1229
            return [
1230
                new StreamReaderStagePlugin(),
1231
                new DefaultCategoryMapperStagePlugin(),
1232
                new DefaultCategoryImportTranslationStagePlugin(),
1233
                new StreamWriterStagePlugin(),
1234
            ];
1235
        });
1236
1237
        return $container;
1238
    }
1239
1240
    /**
1241
     * @param \Spryker\Zed\Kernel\Container $container
1242
     *
1243
     * @return \Spryker\Zed\Kernel\Container
1244
     */
1245
    protected function addDefaultProductImportStagePlugins($container): Container
1246
    {
1247
        $container->set(static::DEFAULT_PRODUCT_IMPORT_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1247
        $container->set(static::DEFAULT_PRODUCT_IMPORT_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1248
            return [
1249
                new StreamReaderStagePlugin(),
1250
                new DefaultProductImportValidatorStagePlugin(),
1251
                new DefaultProductImportTranslationStagePlugin(),
1252
                new ProductMapperStagePlugin(),
1253
                new StreamWriterStagePlugin(),
1254
            ];
1255
        });
1256
1257
        return $container;
1258
    }
1259
1260
    /**
1261
     * @param \Spryker\Zed\Kernel\Container $container
1262
     *
1263
     * @return \Spryker\Zed\Kernel\Container
1264
     */
1265
    protected function addDefaultProductModelImportStagePlugins($container): Container
1266
    {
1267
        $container->set(static::DEFAULT_PRODUCT_MODEL_IMPORT_STAGE_PLUGINS, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1267
        $container->set(static::DEFAULT_PRODUCT_MODEL_IMPORT_STAGE_PLUGINS, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1268
            return [
1269
                new StreamReaderStagePlugin(),
1270
                new DefaultProductModelImportValidatorStagePlugin(),
1271
                new DefaultProductModelImportTranslationStagePlugin(),
1272
                new ProductModelImportMapperStagePlugin(),
1273
                new StreamWriterStagePlugin(),
1274
            ];
1275
        });
1276
1277
        return $container;
1278
    }
1279
1280
    /**
1281
     * @param \Spryker\Zed\Kernel\Container $container
1282
     *
1283
     * @return \Spryker\Zed\Kernel\Container
1284
     */
1285
    protected function addProductAbstractQuery($container): Container
1286
    {
1287
        $container->set(static::PRODUCT_ABSTRACT_QUERY, function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

1287
        $container->set(static::PRODUCT_ABSTRACT_QUERY, function (/** @scrutinizer ignore-unused */ Container $container) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1288
            return SpyProductAbstractQuery::create();
1289
        });
1290
1291
        return $container;
1292
    }
1293
}
1294