waka/wn-wakajob-plugin
Composer 安装命令:
composer require waka/wn-wakajob-plugin
包简介
Plugin pour salesforce
README 文档
README
Wakajob gère les jobs nécessite Utils
Background Job Manager
Crée des JOB et les retrouver
Regarder testJob pour un exemple
Voici un exemple
<?php class SomeBehavior { public function onCreateMails(){ $job = new Waka\Mailer\Jobs\MyJobClass(); $jobManager = \App::make('Waka\Wakajob\Classes\JobManager'); $jobManager->dispatch($job, "Email en cours d'envoi"); } }
If you do not want to clutter your controller (eg if you have job that is run every few minutes), you can use
$jobManager->isSimpleJob(true);
before dispatching - this will remove successful job from DB at the end.
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-12