<?php

namespace Gm\CLI;

use Framework\Log\LogMark;
use Gm\Config\Config;

require_once __DIR__ . '/../../Library/AutoLoad.php';

const DEFAULT_SOCKET_TIMEOUT = "default_socket_timeout";

// cli 调用保留
LogMark::getInstance()->init(Config::SERVICE_LOG_PATH);
ini_set(DEFAULT_SOCKET_TIMEOUT, -1);

$path = Config::LAMP_TIMER;
$lamp = new $path();
while (true) {
    $lamp->run();
    sleep(1);
}
