| 1 | <?php namespace Maqe\Qwatcher\Traits; |
||
| 8 | trait WatchableDispatchesJobs |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Dispatch a job to its appropriate handler. |
||
| 12 | * |
||
| 13 | * @param mixed $job |
||
| 14 | * @param array $meta |
||
| 15 | * @return mixed |
||
| 16 | */ |
||
| 17 | public function dispatch($job, array $meta = []) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Dispatch a command to its appropriate handler in the current process. |
||
| 28 | * |
||
| 29 | * @param mixed $job |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | public function dispatchNow($job) |
||
| 38 | } |
||
| 39 |