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\Communication\Plugin\Configuration; |
9
|
|
|
|
10
|
|
|
use Spryker\Zed\Kernel\Communication\AbstractPlugin; |
|
|
|
|
11
|
|
|
use SprykerMiddleware\Zed\Process\Dependency\Plugin\Configuration\ProcessConfigurationPluginInterface; |
|
|
|
|
12
|
|
|
use SprykerMiddleware\Zed\Process\Dependency\Plugin\Iterator\ProcessIteratorPluginInterface; |
|
|
|
|
13
|
|
|
use SprykerMiddleware\Zed\Process\Dependency\Plugin\Log\MiddlewareLoggerConfigPluginInterface; |
|
|
|
|
14
|
|
|
use SprykerMiddleware\Zed\Process\Dependency\Plugin\Stream\InputStreamPluginInterface; |
|
|
|
|
15
|
|
|
use SprykerMiddleware\Zed\Process\Dependency\Plugin\Stream\OutputStreamPluginInterface; |
|
|
|
|
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @method \SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\AkeneoPimMiddlewareConnectorCommunicationFactory getFactory() |
19
|
|
|
* @method \SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\AkeneoPimMiddlewareConnectorFacadeInterface getFacade() |
20
|
|
|
* @method \SprykerEco\Zed\AkeneoPimMiddlewareConnector\AkeneoPimMiddlewareConnectorConfig getConfig() |
21
|
|
|
* @method \SprykerEco\Zed\AkeneoPimMiddlewareConnector\Persistence\AkeneoPimMiddlewareConnectorQueryContainerInterface getQueryContainer() |
22
|
|
|
*/ |
23
|
|
|
class DefaultProductModelImportConfigurationPlugin extends AbstractPlugin implements ProcessConfigurationPluginInterface |
24
|
|
|
{ |
25
|
|
|
/** |
26
|
|
|
* @var string |
27
|
|
|
*/ |
28
|
|
|
protected const PROCESS_NAME = 'DEFAULT_PRODUCT_MODEL_IMPORT_PROCESS'; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* {@inheritDoc} |
32
|
|
|
* |
33
|
|
|
* @api |
34
|
|
|
* |
35
|
|
|
* @return string |
36
|
|
|
*/ |
37
|
|
|
public function getProcessName(): string |
38
|
|
|
{ |
39
|
|
|
return static::PROCESS_NAME; |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* {@inheritDoc} |
44
|
|
|
* |
45
|
|
|
* @api |
46
|
|
|
* |
47
|
|
|
* @return \SprykerMiddleware\Zed\Process\Dependency\Plugin\Stream\InputStreamPluginInterface |
48
|
|
|
*/ |
49
|
|
|
public function getInputStreamPlugin(): InputStreamPluginInterface |
50
|
|
|
{ |
51
|
|
|
return $this->getFactory() |
52
|
|
|
->getProductModelImportInputStreamPlugin(); |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* {@inheritDoc} |
57
|
|
|
* |
58
|
|
|
* @api |
59
|
|
|
* |
60
|
|
|
* @return \SprykerMiddleware\Zed\Process\Dependency\Plugin\Stream\OutputStreamPluginInterface |
61
|
|
|
*/ |
62
|
|
|
public function getOutputStreamPlugin(): OutputStreamPluginInterface |
63
|
|
|
{ |
64
|
|
|
return $this->getFactory() |
65
|
|
|
->getProductModelImportOutputStreamPlugin(); |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* {@inheritDoc} |
70
|
|
|
* |
71
|
|
|
* @api |
72
|
|
|
* |
73
|
|
|
* @return \SprykerMiddleware\Zed\Process\Dependency\Plugin\Iterator\ProcessIteratorPluginInterface |
74
|
|
|
*/ |
75
|
|
|
public function getIteratorPlugin(): ProcessIteratorPluginInterface |
76
|
|
|
{ |
77
|
|
|
return $this->getFactory() |
78
|
|
|
->getProductModelImportIteratorPlugin(); |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* {@inheritDoc} |
83
|
|
|
* |
84
|
|
|
* @api |
85
|
|
|
* |
86
|
|
|
* @return array<\SprykerMiddleware\Zed\Process\Dependency\Plugin\StagePluginInterface> |
87
|
|
|
*/ |
88
|
|
|
public function getStagePlugins(): array |
89
|
|
|
{ |
90
|
|
|
return $this->getFactory() |
91
|
|
|
->getDefaultProductModelImportStagePluginsStack(); |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* {@inheritDoc} |
96
|
|
|
* |
97
|
|
|
* @api |
98
|
|
|
* |
99
|
|
|
* @return \SprykerMiddleware\Zed\Process\Dependency\Plugin\Log\MiddlewareLoggerConfigPluginInterface |
100
|
|
|
*/ |
101
|
|
|
public function getLoggerPlugin(): MiddlewareLoggerConfigPluginInterface |
102
|
|
|
{ |
103
|
|
|
return $this->getFactory() |
104
|
|
|
->getAkeneoPimLoggerConfigPlugin(); |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* {@inheritDoc} |
109
|
|
|
* |
110
|
|
|
* @api |
111
|
|
|
* |
112
|
|
|
* @return array<\SprykerMiddleware\Zed\Process\Dependency\Plugin\Hook\PreProcessorHookPluginInterface> |
113
|
|
|
*/ |
114
|
|
|
public function getPreProcessorHookPlugins(): array |
115
|
|
|
{ |
116
|
|
|
return $this->getFactory() |
117
|
|
|
->getProductModelImportPreProcessorPluginsStack(); |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* {@inheritDoc} |
122
|
|
|
* |
123
|
|
|
* @api |
124
|
|
|
* |
125
|
|
|
* @return array<\SprykerMiddleware\Zed\Process\Dependency\Plugin\Hook\PostProcessorHookPluginInterface> |
126
|
|
|
*/ |
127
|
|
|
public function getPostProcessorHookPlugins(): array |
128
|
|
|
{ |
129
|
|
|
return $this->getFactory() |
130
|
|
|
->getProductModelImportPostProcessorPluginsStack(); |
131
|
|
|
} |
132
|
|
|
} |
133
|
|
|
|
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths