<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ error_reporting(E_ALL); date_default_timezone_set('GMT'); define('ROOT_PATH', __DIR__); require_once __DIR__ . '/lib/Worker.php'; require_once __DIR__ . '/lib/Job.php'; require_once __DIR__ . '/lib/Queue.php'; require_once __DIR__ . '/lib/Status.php'; //开启一个工作进程 $Worker = new Worker('default'); $Worker->work();