Skip to content

Commit 2518b72

Browse files
author
Yaroslav Voitenko
committed
bug: Fix loop early initialization issue
1 parent 74a8c3f commit 2518b72

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/Commands/ProxyCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@ class ProxyCommand extends Command
2323
protected $signature = 'proxy {--channel=} {--forward-url=}';
2424

2525
public function __construct(
26-
protected LoopInterface $loop,
2726
protected WebhookProxy $webhookProxy,
2827
) {
2928
parent::__construct();
3029
}
3130

3231
protected function getLoop(): LoopInterface
3332
{
33+
if (! isset($this->loop)) {
34+
$this->loop = app(LoopInterface::class);
35+
}
36+
3437
return $this->loop;
3538
}
3639

0 commit comments

Comments
 (0)