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 Spryker\Zed\CategoryStorage\Communication\Plugin\Event\Subscriber; |
||||
9 | |||||
10 | use Spryker\Zed\Category\Dependency\CategoryEvents; |
||||
11 | use Spryker\Zed\CategoryStorage\Communication\Plugin\Event\Listener\CategoryNodeCategoryAttributeStoragePublishListener; |
||||
12 | use Spryker\Zed\CategoryStorage\Communication\Plugin\Event\Listener\CategoryNodeCategoryAttributeStorageUnpublishListener; |
||||
13 | use Spryker\Zed\CategoryStorage\Communication\Plugin\Event\Listener\CategoryNodeCategoryStoragePublishListener; |
||||
14 | use Spryker\Zed\CategoryStorage\Communication\Plugin\Event\Listener\CategoryNodeCategoryStorageUnpublishListener; |
||||
15 | use Spryker\Zed\CategoryStorage\Communication\Plugin\Event\Listener\CategoryNodeCategoryTemplateStoragePublishListener; |
||||
16 | use Spryker\Zed\CategoryStorage\Communication\Plugin\Event\Listener\CategoryNodeCategoryTemplateStorageUnpublishListener; |
||||
17 | use Spryker\Zed\CategoryStorage\Communication\Plugin\Event\Listener\CategoryNodeStorageParentPublishListener; |
||||
18 | use Spryker\Zed\CategoryStorage\Communication\Plugin\Event\Listener\CategoryNodeStoragePublishListener; |
||||
19 | use Spryker\Zed\CategoryStorage\Communication\Plugin\Event\Listener\CategoryNodeStorageUnpublishListener; |
||||
20 | use Spryker\Zed\CategoryStorage\Communication\Plugin\Event\Listener\CategoryTreeStoragePublishListener; |
||||
21 | use Spryker\Zed\CategoryStorage\Communication\Plugin\Event\Listener\CategoryTreeStorageUnpublishListener; |
||||
22 | use Spryker\Zed\Event\Dependency\EventCollectionInterface; |
||||
23 | use Spryker\Zed\Event\Dependency\Plugin\EventSubscriberInterface; |
||||
24 | use Spryker\Zed\Kernel\Communication\AbstractPlugin; |
||||
25 | |||||
26 | /** |
||||
27 | * @deprecated Will be removed in the next major without replacement, registration of plugins now takes place in {@link \Pyz\Zed\Publisher\PublisherDependencyProvider::getPublisherPlugins()}. |
||||
28 | * |
||||
29 | * @method \Spryker\Zed\CategoryStorage\Communication\CategoryStorageCommunicationFactory getFactory() |
||||
30 | * @method \Spryker\Zed\CategoryStorage\Business\CategoryStorageFacadeInterface getFacade() |
||||
31 | * @method \Spryker\Zed\CategoryStorage\CategoryStorageConfig getConfig() |
||||
32 | * @method \Spryker\Zed\CategoryStorage\Persistence\CategoryStorageQueryContainerInterface getQueryContainer() |
||||
33 | */ |
||||
34 | class CategoryStorageEventSubscriber extends AbstractPlugin implements EventSubscriberInterface |
||||
35 | { |
||||
36 | /** |
||||
37 | * @api |
||||
38 | * |
||||
39 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
40 | * |
||||
41 | * @return \Spryker\Zed\Event\Dependency\EventCollectionInterface |
||||
42 | */ |
||||
43 | public function getSubscribedEvents(EventCollectionInterface $eventCollection) |
||||
44 | { |
||||
45 | $this->addCategoryTreeEvents($eventCollection); |
||||
46 | |||||
47 | $this->addCategoryNodePublishListener($eventCollection); |
||||
48 | $this->addCategoryNodePublishParentListener($eventCollection); |
||||
49 | $this->addCategoryNodeUnpublishListener($eventCollection); |
||||
50 | $this->addCategoryNodeUnpublishParentListener($eventCollection); |
||||
51 | $this->addCategoryNodeCreateListener($eventCollection); |
||||
52 | $this->addCategoryNodeCreateParentListener($eventCollection); |
||||
53 | $this->addCategoryNodeUpdateListener($eventCollection); |
||||
54 | $this->addCategoryNodeUpdateParentListener($eventCollection); |
||||
55 | $this->addCategoryNodeDeleteListener($eventCollection); |
||||
56 | $this->addCategoryNodeDeleteParentListener($eventCollection); |
||||
57 | $this->addCategoryCreateListener($eventCollection); |
||||
58 | $this->addCategoryUpdateListener($eventCollection); |
||||
59 | $this->addCategoryDeleteListener($eventCollection); |
||||
60 | $this->addCategoryAttributeUpdateListener($eventCollection); |
||||
61 | $this->addCategoryAttributeCreateListener($eventCollection); |
||||
62 | $this->addCategoryAttributeDeleteListener($eventCollection); |
||||
63 | $this->addCategoryTemplateCreateListener($eventCollection); |
||||
64 | $this->addCategoryTemplateUpdateListener($eventCollection); |
||||
65 | $this->addCategoryTemplateDeleteListener($eventCollection); |
||||
66 | |||||
67 | return $eventCollection; |
||||
68 | } |
||||
69 | |||||
70 | /** |
||||
71 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
72 | * |
||||
73 | * @return void |
||||
74 | */ |
||||
75 | protected function addCategoryTreeEvents(EventCollectionInterface $eventCollection) |
||||
76 | { |
||||
77 | $this->addCategoryTreePublishListener($eventCollection); |
||||
78 | $this->addCategoryTreeUnpublishListener($eventCollection); |
||||
79 | $this->addCategoryCreateForTreeListener($eventCollection); |
||||
80 | $this->addCategoryUpdateForTreeListener($eventCollection); |
||||
81 | $this->addCategoryDeleteForTreeListener($eventCollection); |
||||
82 | $this->addCategoryNodeCreateForTreeListener($eventCollection); |
||||
83 | $this->addCategoryNodeUpdateForTreeListener($eventCollection); |
||||
84 | $this->addCategoryNodeDeleteForTreeListener($eventCollection); |
||||
85 | $this->addCategoryAttributeCreateForTreeListener($eventCollection); |
||||
86 | $this->addCategoryAttributeUpdateForTreeListener($eventCollection); |
||||
87 | $this->addCategoryAttributeDeleteForTreeListener($eventCollection); |
||||
88 | } |
||||
89 | |||||
90 | /** |
||||
91 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryNode\CategoryNodeWritePublisherPlugin} instead. |
||||
92 | * |
||||
93 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
94 | * |
||||
95 | * @return void |
||||
96 | */ |
||||
97 | protected function addCategoryNodePublishListener(EventCollectionInterface $eventCollection) |
||||
98 | { |
||||
99 | $eventCollection->addListenerQueued(CategoryEvents::CATEGORY_NODE_PUBLISH, new CategoryNodeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
Deprecated Code
introduced
by
![]() |
|||||
100 | } |
||||
101 | |||||
102 | /** |
||||
103 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\ParentWritePublisherPlugin} instead. |
||||
104 | * |
||||
105 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
106 | * |
||||
107 | * @return void |
||||
108 | */ |
||||
109 | protected function addCategoryNodePublishParentListener(EventCollectionInterface $eventCollection) |
||||
110 | { |
||||
111 | $eventCollection->addListenerQueued(CategoryEvents::CATEGORY_NODE_PUBLISH, new CategoryNodeStorageParentPublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...geParentPublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\ParentWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
112 | } |
||||
113 | |||||
114 | /** |
||||
115 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryNode\CategoryNodeDeletePublisherPlugin} instead. |
||||
116 | * |
||||
117 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
118 | * |
||||
119 | * @return void |
||||
120 | */ |
||||
121 | protected function addCategoryNodeUnpublishListener(EventCollectionInterface $eventCollection) |
||||
122 | { |
||||
123 | $eventCollection->addListenerQueued(CategoryEvents::CATEGORY_NODE_UNPUBLISH, new CategoryNodeStorageUnpublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...torageUnpublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryNode\CategoryNodeDeletePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
124 | } |
||||
125 | |||||
126 | /** |
||||
127 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\ParentWritePublisherPlugin} instead. |
||||
128 | * |
||||
129 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
130 | * |
||||
131 | * @return void |
||||
132 | */ |
||||
133 | protected function addCategoryNodeUnpublishParentListener(EventCollectionInterface $eventCollection) |
||||
134 | { |
||||
135 | $eventCollection->addListenerQueued(CategoryEvents::CATEGORY_NODE_UNPUBLISH, new CategoryNodeStorageParentPublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...geParentPublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\ParentWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
136 | } |
||||
137 | |||||
138 | /** |
||||
139 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryNode\CategoryNodeWritePublisherPlugin} instead. |
||||
140 | * |
||||
141 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
142 | * |
||||
143 | * @return void |
||||
144 | */ |
||||
145 | protected function addCategoryNodeCreateListener(EventCollectionInterface $eventCollection) |
||||
146 | { |
||||
147 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_NODE_CREATE, new CategoryNodeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryNode\CategoryNodeWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
148 | } |
||||
149 | |||||
150 | /** |
||||
151 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\ParentWritePublisherPlugin} instead. |
||||
152 | * |
||||
153 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
154 | * |
||||
155 | * @return void |
||||
156 | */ |
||||
157 | protected function addCategoryNodeCreateParentListener(EventCollectionInterface $eventCollection) |
||||
158 | { |
||||
159 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_NODE_CREATE, new CategoryNodeStorageParentPublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...geParentPublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\ParentWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
160 | } |
||||
161 | |||||
162 | /** |
||||
163 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryNode\CategoryNodeWritePublisherPlugin} instead. |
||||
164 | * |
||||
165 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
166 | * |
||||
167 | * @return void |
||||
168 | */ |
||||
169 | protected function addCategoryNodeUpdateListener(EventCollectionInterface $eventCollection) |
||||
170 | { |
||||
171 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_NODE_UPDATE, new CategoryNodeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryNode\CategoryNodeWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
172 | } |
||||
173 | |||||
174 | /** |
||||
175 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\ParentWritePublisherPlugin} instead. |
||||
176 | * |
||||
177 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
178 | * |
||||
179 | * @return void |
||||
180 | */ |
||||
181 | protected function addCategoryNodeUpdateParentListener(EventCollectionInterface $eventCollection) |
||||
182 | { |
||||
183 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_NODE_UPDATE, new CategoryNodeStorageParentPublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...geParentPublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\ParentWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
184 | } |
||||
185 | |||||
186 | /** |
||||
187 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryNode\CategoryNodeDeletePublisherPlugin} instead. |
||||
188 | * |
||||
189 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
190 | * |
||||
191 | * @return void |
||||
192 | */ |
||||
193 | protected function addCategoryNodeDeleteListener(EventCollectionInterface $eventCollection) |
||||
194 | { |
||||
195 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_NODE_DELETE, new CategoryNodeStorageUnpublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...torageUnpublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryNode\CategoryNodeDeletePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
196 | } |
||||
197 | |||||
198 | /** |
||||
199 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\ParentWritePublisherPlugin} instead. |
||||
200 | * |
||||
201 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
202 | * |
||||
203 | * @return void |
||||
204 | */ |
||||
205 | protected function addCategoryNodeDeleteParentListener(EventCollectionInterface $eventCollection) |
||||
206 | { |
||||
207 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_NODE_DELETE, new CategoryNodeStorageParentPublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...geParentPublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\ParentWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
208 | } |
||||
209 | |||||
210 | /** |
||||
211 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\Category\CategoryWritePublisherPlugin} instead. |
||||
212 | * |
||||
213 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
214 | * |
||||
215 | * @return void |
||||
216 | */ |
||||
217 | protected function addCategoryCreateListener(EventCollectionInterface $eventCollection) |
||||
218 | { |
||||
219 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_CREATE, new CategoryNodeCategoryStoragePublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...yStoragePublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\Category\CategoryWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
220 | } |
||||
221 | |||||
222 | /** |
||||
223 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\Category\CategoryWritePublisherPlugin} instead. |
||||
224 | * |
||||
225 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
226 | * |
||||
227 | * @return void |
||||
228 | */ |
||||
229 | protected function addCategoryUpdateListener(EventCollectionInterface $eventCollection) |
||||
230 | { |
||||
231 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_UPDATE, new CategoryNodeCategoryStoragePublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...yStoragePublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\Category\CategoryWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
232 | } |
||||
233 | |||||
234 | /** |
||||
235 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\Category\CategoryDeletePublisherPlugin} instead. |
||||
236 | * |
||||
237 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
238 | * |
||||
239 | * @return void |
||||
240 | */ |
||||
241 | protected function addCategoryDeleteListener(EventCollectionInterface $eventCollection) |
||||
242 | { |
||||
243 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_DELETE, new CategoryNodeCategoryStorageUnpublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...torageUnpublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\Category\CategoryDeletePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
244 | } |
||||
245 | |||||
246 | /** |
||||
247 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryAttribute\CategoryAttributeWritePublisherPlugin} instead. |
||||
248 | * |
||||
249 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
250 | * |
||||
251 | * @return void |
||||
252 | */ |
||||
253 | protected function addCategoryAttributeUpdateListener(EventCollectionInterface $eventCollection) |
||||
254 | { |
||||
255 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_ATTRIBUTE_UPDATE, new CategoryNodeCategoryAttributeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryAttribute\CategoryAttributeWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
256 | } |
||||
257 | |||||
258 | /** |
||||
259 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryAttribute\CategoryAttributeWritePublisherPlugin} instead. |
||||
260 | * |
||||
261 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
262 | * |
||||
263 | * @return void |
||||
264 | */ |
||||
265 | protected function addCategoryAttributeCreateListener(EventCollectionInterface $eventCollection) |
||||
266 | { |
||||
267 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_ATTRIBUTE_CREATE, new CategoryNodeCategoryAttributeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryAttribute\CategoryAttributeWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
268 | } |
||||
269 | |||||
270 | /** |
||||
271 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryAttribute\CategoryAttributeDeletePublisherPlugin} instead. |
||||
272 | * |
||||
273 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
274 | * |
||||
275 | * @return void |
||||
276 | */ |
||||
277 | protected function addCategoryAttributeDeleteListener(EventCollectionInterface $eventCollection) |
||||
278 | { |
||||
279 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_ATTRIBUTE_DELETE, new CategoryNodeCategoryAttributeStorageUnpublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...torageUnpublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryAttribute\CategoryAttributeDeletePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
280 | } |
||||
281 | |||||
282 | /** |
||||
283 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTemplate\CategoryTemplateWritePublisherPlugin} instead. |
||||
284 | * |
||||
285 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
286 | * |
||||
287 | * @return void |
||||
288 | */ |
||||
289 | protected function addCategoryTemplateCreateListener(EventCollectionInterface $eventCollection) |
||||
290 | { |
||||
291 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_TEMPLATE_CREATE, new CategoryNodeCategoryTemplateStoragePublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTemplate\CategoryTemplateWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
292 | } |
||||
293 | |||||
294 | /** |
||||
295 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTemplate\CategoryTemplateWritePublisherPlugin} instead. |
||||
296 | * |
||||
297 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
298 | * |
||||
299 | * @return void |
||||
300 | */ |
||||
301 | protected function addCategoryTemplateUpdateListener(EventCollectionInterface $eventCollection) |
||||
302 | { |
||||
303 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_TEMPLATE_UPDATE, new CategoryNodeCategoryTemplateStoragePublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTemplate\CategoryTemplateWritePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
304 | } |
||||
305 | |||||
306 | /** |
||||
307 | * @deprecated use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTemplate\CategoryTemplateDeletePublisherPlugin} instead. |
||||
308 | * |
||||
309 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
310 | * |
||||
311 | * @return void |
||||
312 | */ |
||||
313 | protected function addCategoryTemplateDeleteListener(EventCollectionInterface $eventCollection) |
||||
314 | { |
||||
315 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_TEMPLATE_DELETE, new CategoryNodeCategoryTemplateStorageUnpublishListener(), 0, null, $this->getConfig()->getCategoryNodeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...torageUnpublishListener has been deprecated: use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTemplate\CategoryTemplateDeletePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
316 | } |
||||
317 | |||||
318 | /** |
||||
319 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead. |
||||
320 | * |
||||
321 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
322 | * |
||||
323 | * @return void |
||||
324 | */ |
||||
325 | protected function addCategoryTreePublishListener(EventCollectionInterface $eventCollection) |
||||
326 | { |
||||
327 | $eventCollection->addListenerQueued(CategoryEvents::CATEGORY_TREE_PUBLISH, new CategoryTreeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryTreeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
328 | } |
||||
329 | |||||
330 | /** |
||||
331 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeDeletePublisherPlugin} instead. |
||||
332 | * |
||||
333 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
334 | * |
||||
335 | * @return void |
||||
336 | */ |
||||
337 | protected function addCategoryTreeUnpublishListener(EventCollectionInterface $eventCollection) |
||||
338 | { |
||||
339 | $eventCollection->addListenerQueued(CategoryEvents::CATEGORY_TREE_UNPUBLISH, new CategoryTreeStorageUnpublishListener(), 0, null, $this->getConfig()->getCategoryTreeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...torageUnpublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeDeletePublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
340 | } |
||||
341 | |||||
342 | /** |
||||
343 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead. |
||||
344 | * |
||||
345 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
346 | * |
||||
347 | * @return void |
||||
348 | */ |
||||
349 | protected function addCategoryCreateForTreeListener(EventCollectionInterface $eventCollection) |
||||
350 | { |
||||
351 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_CREATE, new CategoryTreeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryTreeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
352 | } |
||||
353 | |||||
354 | /** |
||||
355 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead. |
||||
356 | * |
||||
357 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
358 | * |
||||
359 | * @return void |
||||
360 | */ |
||||
361 | protected function addCategoryUpdateForTreeListener(EventCollectionInterface $eventCollection) |
||||
362 | { |
||||
363 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_UPDATE, new CategoryTreeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryTreeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
364 | } |
||||
365 | |||||
366 | /** |
||||
367 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead. |
||||
368 | * |
||||
369 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
370 | * |
||||
371 | * @return void |
||||
372 | */ |
||||
373 | protected function addCategoryDeleteForTreeListener(EventCollectionInterface $eventCollection) |
||||
374 | { |
||||
375 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_DELETE, new CategoryTreeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryTreeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
376 | } |
||||
377 | |||||
378 | /** |
||||
379 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead. |
||||
380 | * |
||||
381 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
382 | * |
||||
383 | * @return void |
||||
384 | */ |
||||
385 | protected function addCategoryNodeCreateForTreeListener(EventCollectionInterface $eventCollection) |
||||
386 | { |
||||
387 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_NODE_CREATE, new CategoryTreeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryTreeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
388 | } |
||||
389 | |||||
390 | /** |
||||
391 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead. |
||||
392 | * |
||||
393 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
394 | * |
||||
395 | * @return void |
||||
396 | */ |
||||
397 | protected function addCategoryNodeUpdateForTreeListener(EventCollectionInterface $eventCollection) |
||||
398 | { |
||||
399 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_NODE_UPDATE, new CategoryTreeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryTreeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
400 | } |
||||
401 | |||||
402 | /** |
||||
403 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead. |
||||
404 | * |
||||
405 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
406 | * |
||||
407 | * @return void |
||||
408 | */ |
||||
409 | protected function addCategoryNodeDeleteForTreeListener(EventCollectionInterface $eventCollection) |
||||
410 | { |
||||
411 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_NODE_DELETE, new CategoryTreeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryTreeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
412 | } |
||||
413 | |||||
414 | /** |
||||
415 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead. |
||||
416 | * |
||||
417 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
418 | * |
||||
419 | * @return void |
||||
420 | */ |
||||
421 | protected function addCategoryAttributeCreateForTreeListener(EventCollectionInterface $eventCollection) |
||||
422 | { |
||||
423 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_ATTRIBUTE_CREATE, new CategoryTreeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryTreeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
424 | } |
||||
425 | |||||
426 | /** |
||||
427 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead. |
||||
428 | * |
||||
429 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
430 | * |
||||
431 | * @return void |
||||
432 | */ |
||||
433 | protected function addCategoryAttributeUpdateForTreeListener(EventCollectionInterface $eventCollection) |
||||
434 | { |
||||
435 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_ATTRIBUTE_UPDATE, new CategoryTreeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryTreeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
436 | } |
||||
437 | |||||
438 | /** |
||||
439 | * @deprecated Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead. |
||||
440 | * |
||||
441 | * @param \Spryker\Zed\Event\Dependency\EventCollectionInterface $eventCollection |
||||
442 | * |
||||
443 | * @return void |
||||
444 | */ |
||||
445 | protected function addCategoryAttributeDeleteForTreeListener(EventCollectionInterface $eventCollection) |
||||
446 | { |
||||
447 | $eventCollection->addListenerQueued(CategoryEvents::ENTITY_SPY_CATEGORY_ATTRIBUTE_DELETE, new CategoryTreeStoragePublishListener(), 0, null, $this->getConfig()->getCategoryTreeEventQueueName()); |
||||
0 ignored issues
–
show
The class
Spryker\Zed\CategoryStor...eStoragePublishListener has been deprecated: Use {@link \Spryker\Zed\CategoryStorage\Communication\Plugin\Publisher\CategoryTree\CategoryTreeWriteForPublishingPublisherPlugin} instead.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
448 | } |
||||
449 | } |
||||
450 |