I would like to schedule jobs from other parts of the code. So I created my own scheduler class which gets Illuminate\Console\Scheduling\Schedule::class
injected as constructor parameter. The scheduler class is resolved with app(..::class)
.
Everything works fine however jobs scheduled on this instance are never actually scheduled.
One idea was maybe registering the Illuminate\Console\Scheduling\Schedule
as singleton.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire