This is WIP for implementing #7
I started with the Worker events. Queue is missing, but it's only one event.
Also, tests are missing, but I want to discuss this first.
Now you can do sth. like:
use Cake\Event\EventManager;
EventManager::instance()->on('Queue.Worker.job.success', function ($event, $job) {
debug($job->data['job']);
});
Coverage decreased (-8.1%) to 60.0% when pulling bcba5129371a83b6c4275b28a00b56ee98197a81 on cleptric:event_mapping into de05f5c11583b7cef8daf0cbdec14fd9c9d50881 on josegonzalez:master.
Coverage decreased (-8.1%) to 60.0% when pulling 6e5631086441391ad93844a3430da019f20528e2 on cleptric:event_mapping into de05f5c11583b7cef8daf0cbdec14fd9c9d50881 on josegonzalez:master.
Coverage decreased (-9.5%) to 58.659% when pulling e05bc22a32f3316cd21cf81f697166de7be60cbb on cleptric:event_mapping into de05f5c11583b7cef8daf0cbdec14fd9c9d50881 on josegonzalez:master.
Coverage increased (+0.2%) to 68.354% when pulling 3f5992daa8e82e89c821e8d8d644a6692312c44c on cleptric:event_mapping into de05f5c11583b7cef8daf0cbdec14fd9c9d50881 on josegonzalez:master.
This is WIP for implementing #7 I started with the Worker events. Queue is missing, but it's only one event. Also, tests are missing, but I want to discuss this first.
Now you can do sth. like: