#!/usr/bin/env php
<?php
/*
 * This file is part of PHP CS Fixer.
 * (c) kcloze <pei.greet@qq.com>
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */
// 定义项目路径

define('APP_PATH', __DIR__ . '/application/');
define('RUNTIME_PATH', __DIR__ . '/runtime/');
define('SWOOLE_JOBS_ROOT_PATH', __DIR__);
date_default_timezone_set('Asia/Shanghai');

// ThinkPHP 引导文件
require SWOOLE_JOBS_ROOT_PATH . '/thinkphp/base.php';
require SWOOLE_JOBS_ROOT_PATH . '/vendor/autoload.php';
$config = require_once SWOOLE_JOBS_ROOT_PATH . '/application/swoole-jobs.php';

$console = new \Kcloze\Jobs\Console($config);
$console->run();
