diff --git a/README.md b/README.md index 60be4a9..8a5aa69 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Utilize Laravel Processes to run PHP code asynchronously, as if using Laravel Co ## What really is this? [Laravel Processes](https://laravel.com/docs/10.x/processes) was first introduced in Laravel 10. This library wraps around `Process::start()` to let you execute code in the background to achieve async, albeit with some caveats: - You may only execute PHP code -- Restrictions from `laravel/serializable-closure` apply (see [their README](https://github.com/laravel/serializable-closure)) +- Restrictions from `opis/closure` apply (see [their README](https://github.com/opis/closure)) - Hands-off execution: no built-in result-checking, check the results yourself (e.g. via database, file cache, etc) This library internally uses an Artisan command to run the async code, which is similar to Laravel 11 [Concurrency](https://laravel.com/docs/11.x/concurrency). diff --git a/composer.json b/composer.json index 7ca0106..36f891e 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,6 @@ "require": { "php": "^8.1", "illuminate/support": "^10.0|^11.0", - "laravel/serializable-closure": "^2.0", "loophp/phposinfo": "^1.8", "opis/closure": "^4.0" }, @@ -51,5 +50,8 @@ "Vectorial1024\\LaravelProcessAsync\\ProcessAsyncServiceProvider" ] } + }, + "config": { + "sort-packages": true } } diff --git a/src/AsyncTask.php b/src/AsyncTask.php index 44a33b3..8a14879 100644 --- a/src/AsyncTask.php +++ b/src/AsyncTask.php @@ -9,7 +9,6 @@ use Illuminate\Support\Facades\Process; use Illuminate\Support\Str; use InvalidArgumentException; -use Laravel\SerializableClosure\SerializableClosure; use LogicException; use loophp\phposinfo\OsInfo; use RuntimeException;