Config fix, updated README

This commit is contained in:
Marek Rost
2018-06-19 18:11:41 +02:00
parent 8a317800ef
commit 53c70b72ce
3 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -6,7 +6,6 @@ use \Workerman\Connection\AsyncTcpConnection;
// 自动加载类
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/config.php';
define('STAGE_INIT', 0);
@@ -37,6 +36,7 @@ $worker->onConnect = function($connection)
};
$worker->onMessage = function($connection, $buffer)
{
global $AUTH_ENABLED, $USERNAME, $PASSWORD;
switch($connection->stage)
{
case STAGE_INIT: