mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
20 lines
295 B
PHP
20 lines
295 B
PHP
<?php
|
|
|
|
namespace App\Observers;
|
|
|
|
use Hhxsv5\LaravelS\Swoole\Task\Task;
|
|
|
|
class AbstractObserver
|
|
{
|
|
/**
|
|
* @param $task
|
|
* @return void
|
|
*/
|
|
public static function taskDeliver($task)
|
|
{
|
|
if (app()->bound('swoole')) {
|
|
Task::deliver($task);
|
|
}
|
|
}
|
|
}
|