Skip to content

Commit

Permalink
ENSITECH-74
Browse files Browse the repository at this point in the history
  • Loading branch information
MsNatali committed Jun 26, 2024
1 parent 9806ef2 commit 15488fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/OnWorkerStart.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ protected function bootWorker($server): WorkerContract
$this->workerState->client = new SwooleClient();

try {
return tap(new Worker(
$worker = new Worker(
new ApplicationFactory($this->basePath),
$this->workerState->client,
))->boot([
);

$worker->boot([
'octane.cacheTable' => $this->workerState->cacheTable,
Server::class => $server,
WorkerState::class => $this->workerState,
]);

return $worker;
} catch (Throwable $e) {
Stream::throwable($e);

Expand Down

0 comments on commit 15488fa

Please sign in to comment.