diff --git a/composer.json b/composer.json index b6822ce..f7ac1b7 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,12 @@ { "name": "barryvdh/laravel-async-queue", "description": "Async Queue Driver for Laravel (Push to background)", - "keywords": ["laravel", "queue", "async", "background"], + "keywords": [ + "laravel", + "queue", + "async", + "background" + ], "license": "MIT", "authors": [ { @@ -11,9 +16,8 @@ ], "require": { "php": ">=7", - "illuminate/support": "^6|^7|^8|^9", - "illuminate/console": "^6|^7|^8|^9", - "symfony/process": "^4|^5|^6" + "illuminate/console": "^6|^7|^8|^9|^10.0|^11.0", + "symfony/process": "^4|^5|^6|^7.0" }, "autoload": { "psr-4": { diff --git a/src/AsyncQueue.php b/src/AsyncQueue.php index 3db92f8..6517822 100644 --- a/src/AsyncQueue.php +++ b/src/AsyncQueue.php @@ -134,8 +134,7 @@ public function startProcess($id) $command = $this->getCommand($id); $cwd = base_path(); - $process = new Process([$command], $cwd); - $process->run(); + Process::fromShellCommandline($command,$cwd)->run(); } /**