1 | <?php |
||
9 | class Event |
||
10 | { |
||
11 | private $app; |
||
12 | private $filesystem; |
||
13 | private $service; |
||
14 | private $pool; |
||
15 | |||
16 | 4 | public function __construct(Application $app, Service $service, Pool $pool, Filesystem $filesystem) |
|
17 | { |
||
18 | 4 | $this->app = $app; |
|
19 | 4 | $this->filesystem = $filesystem; |
|
20 | 4 | $this->service = $service; |
|
21 | 4 | $this->pool = $pool; |
|
22 | 4 | } |
|
23 | |||
24 | 3 | public function getSubscription() |
|
42 | |||
43 | 1 | public function fire(string $event, $context) |
|
44 | { |
||
45 | 1 | $this->app->dispatch('event.fire', [ |
|
46 | 1 | 'event' => $this->service->getName().'.'.$event, |
|
47 | 1 | 'context' => $context, |
|
48 | ]); |
||
49 | 1 | } |
|
50 | |||
51 | public function fireChanges(string $producer) |
||
83 | } |
||
84 |