1 | <?php |
||
20 | class DomainEventPublisher implements EventSubscriber |
||
21 | { |
||
22 | /** |
||
23 | * @var EventBus |
||
24 | */ |
||
25 | private $bus; |
||
26 | |||
27 | /** |
||
28 | * @var bool |
||
29 | */ |
||
30 | private $enable; |
||
31 | |||
32 | /** |
||
33 | * @param EventBus $bus |
||
34 | * @param bool $enable |
||
35 | */ |
||
36 | 6 | public function __construct(EventBus $bus, $enable) |
|
41 | |||
42 | /** |
||
43 | * @return array |
||
44 | */ |
||
45 | 2 | public function getSubscribedEvents() |
|
55 | |||
56 | /** |
||
57 | * @param PostFlushEventArgs $args |
||
58 | */ |
||
59 | 4 | public function postFlush(PostFlushEventArgs $args) |
|
89 | } |
||
90 |