Skip to content

Commit a2da0e5

Browse files
committed
Adjust package requirements
1 parent ae22e6f commit a2da0e5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Utilize Laravel Processes to run PHP code asynchronously, as if using Laravel Co
1010
## What really is this?
1111
[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:
1212
- You may only execute PHP code
13-
- Restrictions from `laravel/serializable-closure` apply (see [their README](https://github.com/laravel/serializable-closure))
13+
- Restrictions from `opis/closure` apply (see [their README](https://github.com/opis/closure))
1414
- Hands-off execution: no built-in result-checking, check the results yourself (e.g. via database, file cache, etc)
1515

1616
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).

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"require": {
3434
"php": "^8.1",
3535
"illuminate/support": "^10.0|^11.0",
36-
"laravel/serializable-closure": "^2.0",
3736
"loophp/phposinfo": "^1.8",
3837
"opis/closure": "^4.0"
3938
},
@@ -51,5 +50,8 @@
5150
"Vectorial1024\\LaravelProcessAsync\\ProcessAsyncServiceProvider"
5251
]
5352
}
53+
},
54+
"config": {
55+
"sort-packages": true
5456
}
5557
}

src/AsyncTask.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Illuminate\Support\Facades\Process;
1010
use Illuminate\Support\Str;
1111
use InvalidArgumentException;
12-
use Laravel\SerializableClosure\SerializableClosure;
1312
use LogicException;
1413
use loophp\phposinfo\OsInfo;
1514
use RuntimeException;

0 commit comments

Comments
 (0)