From 606c2aa9b0c1c5c6663f453cace15e4a6133df6c Mon Sep 17 00:00:00 2001 From: Farid Date: Sat, 26 Jun 2021 14:12:38 +0430 Subject: [PATCH 1/5] update package --- composer.json | 8 ++++---- readme.md | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 98717fb..c8d12da 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,12 @@ { - "name": "barryvdh/laravel-async-queue", + "name": "farazin-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" } ], "require": { @@ -26,7 +26,7 @@ }, "laravel": { "providers": [ - "Barryvdh\\Queue\\AsyncServiceProvider" + "FarazinCo\\Queue\\AsyncServiceProvider" ] } } diff --git a/readme.md b/readme.md index 4aba467..0e80499 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/FarazinCo/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/FarazinCo/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 FarazinCo/laravel-async-queue Add the Service Provider to the providers array in config/app.php - Barryvdh\Queue\AsyncServiceProvider::class, + FarazinCo\Queue\AsyncServiceProvider::class, You need to create the migration table for queues and run it. From 9a5b407449d9862c64268f674db63ce1be05e866 Mon Sep 17 00:00:00 2001 From: Hossein Askari Date: Sat, 26 Jun 2021 14:20:14 +0430 Subject: [PATCH 2/5] Check app version before passing [command] to Process Symfony Process Does not accept array before Laravel 7 So The app version should be checked --- src/AsyncQueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AsyncQueue.php b/src/AsyncQueue.php index 3db92f8..63257c3 100644 --- a/src/AsyncQueue.php +++ b/src/AsyncQueue.php @@ -134,7 +134,7 @@ public function startProcess($id) $command = $this->getCommand($id); $cwd = base_path(); - $process = new Process([$command], $cwd); + $process = new Process((int)app()->version() > 6 ? [$command] : $command, $cwd); $process->run(); } From 78852388890651c5eb9df77cb4346e720908191b Mon Sep 17 00:00:00 2001 From: Farid Date: Sat, 26 Jun 2021 14:29:40 +0430 Subject: [PATCH 3/5] change namespace --- composer.json | 2 +- src/AsyncQueue.php | 2 +- src/AsyncServiceProvider.php | 6 +++--- src/Connectors/AsyncConnector.php | 4 ++-- src/Console/AsyncCommand.php | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index c8d12da..34cb9cc 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ }, "autoload": { "psr-4": { - "Barryvdh\\Queue\\": "src/" + "FarazinCo\\Queue\\": "src/" } }, "extra": { diff --git a/src/AsyncQueue.php b/src/AsyncQueue.php index 3db92f8..e7991d3 100644 --- a/src/AsyncQueue.php +++ b/src/AsyncQueue.php @@ -1,5 +1,5 @@ Date: Sat, 26 Jun 2021 14:30:24 +0430 Subject: [PATCH 4/5] update composer --- composer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composer.json b/composer.json index 34cb9cc..6f11d41 100644 --- a/composer.json +++ b/composer.json @@ -7,6 +7,10 @@ { "name": "Hosein Askari", "email": "h.askari.16@gmail.com" + }, + { + "name": "Farid Froozan", + "email": "froozan@yahoo.com" } ], "require": { From 3da5c2e5629a48428882472cebc36fc2dc1eb13c Mon Sep 17 00:00:00 2001 From: Farid Date: Tue, 3 Aug 2021 08:55:44 +0430 Subject: [PATCH 5/5] change package name --- composer.json | 6 +++--- readme.md | 8 ++++---- src/AsyncQueue.php | 2 +- src/AsyncServiceProvider.php | 6 +++--- src/Connectors/AsyncConnector.php | 4 ++-- src/Console/AsyncCommand.php | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/composer.json b/composer.json index 6f11d41..14023da 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "farazin-co/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", @@ -21,7 +21,7 @@ }, "autoload": { "psr-4": { - "FarazinCo\\Queue\\": "src/" + "NovadayCo\\Queue\\": "src/" } }, "extra": { @@ -30,7 +30,7 @@ }, "laravel": { "providers": [ - "FarazinCo\\Queue\\AsyncServiceProvider" + "NovadayCo\\Queue\\AsyncServiceProvider" ] } } diff --git a/readme.md b/readme.md index 0e80499..e2e8c0b 100644 --- a/readme.md +++ b/readme.md @@ -3,9 +3,9 @@ ## Push a function/closure to the background. -### For Laravel 5.4, check the [0.6 branch](https://github.com/FarazinCo/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/FarazinCo/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 FarazinCo/laravel-async-queue + composer require NovadayCo/laravel-async-queue Add the Service Provider to the providers array in config/app.php - FarazinCo\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 634a01f..e3ace94 100644 --- a/src/AsyncQueue.php +++ b/src/AsyncQueue.php @@ -1,5 +1,5 @@