### 在全局事件(EasySwooleEvent)的mainServerCreate方法中进行注册
public static function mainServerCreate(EventRegister $register)
{
// TODO: Implement mainServerCreate() method.
$hot = new HotReloadOptions();
$hotReload = new HotReload($hot);
$hot->setMonitorFolder([EASYSWOOLE_ROOT . '/App']);
$server = ServerManager::getInstance()->getSwooleServer();
$hotReload->attachToServer($server);
}