Conditions | 8 |
Paths | 17 |
Total Lines | 31 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | protected function autoWire(Container $container): void |
||
26 | { |
||
27 | if ($this->wasAutoWired()) { |
||
28 | return; |
||
29 | } |
||
30 | |||
31 | foreach ($container->topics()->all() as $topic) { |
||
32 | if (false === $topic->canAutoCreate()) { |
||
33 | continue; |
||
34 | } |
||
35 | |||
36 | try { |
||
37 | $topic->install(); |
||
38 | } catch (\Throwable $exception) { |
||
39 | // |
||
40 | } |
||
41 | } |
||
42 | |||
43 | foreach ($container->queues()->all() as $queue) { |
||
44 | if (false === $queue->canAutoCreate()) { |
||
45 | continue; |
||
46 | } |
||
47 | |||
48 | try { |
||
49 | $queue->install(); |
||
50 | } catch (\Throwable $exception) { |
||
51 | // |
||
52 | } |
||
53 | } |
||
54 | |||
55 | $this->wasAutoWired = true; |
||
56 | } |
||
67 |