lundi 25 septembre 2017

Schedule jobs outside Kernel

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.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2wQxhqU
via IFTTT

Aucun commentaire:

Enregistrer un commentaire