diff --git a/composer.json b/composer.json index 98717fb..14023da 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,16 @@ { - "name": "barryvdh/laravel-async-queue", + "name": "novaday-co/laravel-async-queue", "description": "Async Queue Driver for Laravel (Push to background)", "keywords": ["laravel", "queue", "async", "background"], "license": "MIT", "authors": [ { - "name": "Barry vd. Heuvel", - "email": "barryvdh@gmail.com" + "name": "Hosein Askari", + "email": "h.askari.16@gmail.com" + }, + { + "name": "Farid Froozan", + "email": "froozan@yahoo.com" } ], "require": { @@ -17,7 +21,7 @@ }, "autoload": { "psr-4": { - "Barryvdh\\Queue\\": "src/" + "NovadayCo\\Queue\\": "src/" } }, "extra": { @@ -26,7 +30,7 @@ }, "laravel": { "providers": [ - "Barryvdh\\Queue\\AsyncServiceProvider" + "NovadayCo\\Queue\\AsyncServiceProvider" ] } } diff --git a/readme.md b/readme.md index 4aba467..e2e8c0b 100644 --- a/readme.md +++ b/readme.md @@ -1,11 +1,11 @@ -# Laravel 5 Async Queue Driver +# Laravel Async Queue Driver ## Push a function/closure to the background. -### For Laravel 5.4, check the [0.6 branch](https://github.com/barryvdh/laravel-async-queue/tree/v0.6.0) +### For Laravel 5.4, check the [0.6 branch](https://github.com/NovadayCo/laravel-async-queue/tree/v0.6.0) -### For Laravel 5.3, check the [0.5 branch](https://github.com/barryvdh/laravel-async-queue/tree/v0.5.0) +### For Laravel 5.3, check the [0.5 branch](https://github.com/NovadayCo/laravel-async-queue/tree/v0.5.0) Just like the 'sync' driver, this is not a real queue driver. It is always fired immediatly. The only difference is that the closure is sent to the background without waiting for the response. @@ -17,11 +17,11 @@ This package is more usable as an alternative for running incidental tasks in th Require the latest version of this package with Composer - composer require barryvdh/laravel-async-queue + composer require NovadayCo/laravel-async-queue Add the Service Provider to the providers array in config/app.php - Barryvdh\Queue\AsyncServiceProvider::class, + NovadayCo\Queue\AsyncServiceProvider::class, You need to create the migration table for queues and run it. diff --git a/src/AsyncQueue.php b/src/AsyncQueue.php index 3db92f8..e3ace94 100644 --- a/src/AsyncQueue.php +++ b/src/AsyncQueue.php @@ -1,5 +1,5 @@ getCommand($id); $cwd = base_path(); - $process = new Process([$command], $cwd); + $process = new Process((int)app()->version() > 6 ? [$command] : $command, $cwd); $process->run(); } diff --git a/src/AsyncServiceProvider.php b/src/AsyncServiceProvider.php index fab4b14..0175f12 100644 --- a/src/AsyncServiceProvider.php +++ b/src/AsyncServiceProvider.php @@ -1,9 +1,9 @@