src/Kunstmaan/AdminBundle/Helper/CloneHelper.php 1 location
|
@@ 60-69 (lines=10) @@
|
57 |
|
* |
58 |
|
* @return object |
59 |
|
*/ |
60 |
|
private function dispatch($event, string $eventName) |
61 |
|
{ |
62 |
|
if (class_exists(LegacyEventDispatcherProxy::class)) { |
63 |
|
$eventDispatcher = LegacyEventDispatcherProxy::decorate($this->eventDispatcher); |
64 |
|
|
65 |
|
return $eventDispatcher->dispatch($event, $eventName); |
66 |
|
} |
67 |
|
|
68 |
|
return $this->eventDispatcher->dispatch($eventName, $event); |
69 |
|
} |
70 |
|
} |
71 |
|
|
src/Kunstmaan/NodeBundle/Helper/Menu/ActionsMenuBuilder.php 1 location
|
@@ 544-553 (lines=10) @@
|
541 |
|
* |
542 |
|
* @return object |
543 |
|
*/ |
544 |
|
private function dispatch($event, string $eventName) |
545 |
|
{ |
546 |
|
if (class_exists(LegacyEventDispatcherProxy::class)) { |
547 |
|
$eventDispatcher = LegacyEventDispatcherProxy::decorate($this->dispatcher); |
548 |
|
|
549 |
|
return $eventDispatcher->dispatch($event, $eventName); |
550 |
|
} |
551 |
|
|
552 |
|
return $this->dispatcher->dispatch($eventName, $event); |
553 |
|
} |
554 |
|
} |
555 |
|
|
src/Kunstmaan/NodeBundle/Helper/NodeAdmin/NodeAdminPublisher.php 1 location
|
@@ 330-339 (lines=10) @@
|
327 |
|
* |
328 |
|
* @return object |
329 |
|
*/ |
330 |
|
private function dispatch($event, string $eventName) |
331 |
|
{ |
332 |
|
if (class_exists(LegacyEventDispatcherProxy::class)) { |
333 |
|
$eventDispatcher = LegacyEventDispatcherProxy::decorate($this->eventDispatcher); |
334 |
|
|
335 |
|
return $eventDispatcher->dispatch($event, $eventName); |
336 |
|
} |
337 |
|
|
338 |
|
return $this->eventDispatcher->dispatch($eventName, $event); |
339 |
|
} |
340 |
|
} |
341 |
|
|
src/Kunstmaan/NodeBundle/Helper/NodeHelper.php 1 location
|
@@ 521-530 (lines=10) @@
|
518 |
|
* |
519 |
|
* @return object |
520 |
|
*/ |
521 |
|
private function dispatch($event, string $eventName) |
522 |
|
{ |
523 |
|
if (class_exists(LegacyEventDispatcherProxy::class)) { |
524 |
|
$eventDispatcher = LegacyEventDispatcherProxy::decorate($this->eventDispatcher); |
525 |
|
|
526 |
|
return $eventDispatcher->dispatch($event, $eventName); |
527 |
|
} |
528 |
|
|
529 |
|
return $this->eventDispatcher->dispatch($eventName, $event); |
530 |
|
} |
531 |
|
} |
532 |
|
|
src/Kunstmaan/NodeBundle/Helper/PageCloningHelper.php 1 location
|
@@ 171-180 (lines=10) @@
|
168 |
|
* |
169 |
|
* @return object |
170 |
|
*/ |
171 |
|
private function dispatch($event, string $eventName) |
172 |
|
{ |
173 |
|
if (class_exists(LegacyEventDispatcherProxy::class)) { |
174 |
|
$eventDispatcher = LegacyEventDispatcherProxy::decorate($this->eventDispatcherInterface); |
175 |
|
|
176 |
|
return $eventDispatcher->dispatch($event, $eventName); |
177 |
|
} |
178 |
|
|
179 |
|
return $this->eventDispatcherInterface->dispatch($eventName, $event); |
180 |
|
} |
181 |
|
} |
182 |
|
|
src/Kunstmaan/NodeBundle/EventListener/SlugListener.php 1 location
|
@@ 97-106 (lines=10) @@
|
94 |
|
* |
95 |
|
* @return object |
96 |
|
*/ |
97 |
|
private function dispatch($event, string $eventName) |
98 |
|
{ |
99 |
|
if (class_exists(LegacyEventDispatcherProxy::class)) { |
100 |
|
$eventDispatcher = LegacyEventDispatcherProxy::decorate($this->eventDispatcher); |
101 |
|
|
102 |
|
return $eventDispatcher->dispatch($event, $eventName); |
103 |
|
} |
104 |
|
|
105 |
|
return $this->eventDispatcher->dispatch($eventName, $event); |
106 |
|
} |
107 |
|
} |
108 |
|
|