diff --git a/src/Platform/Platform.php b/src/Platform/Platform.php index 8aac74c..0d8b4b3 100644 --- a/src/Platform/Platform.php +++ b/src/Platform/Platform.php @@ -46,7 +46,7 @@ public function init(string $type, array $params = []): void break; case Service::TYPE_TASK: $adapter = $params['adapter'] ?? new Generic(); - $this->cli ??= new CLI(); + $this->cli ??= new CLI($adapter); $this->initTasks($services); break; case Service::TYPE_GRAPHQL: