浏览代码

协议文件不要在BootStrap/Gateway.php 中引入

walkor 11 年之前
父节点
当前提交
eac136b585
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 0 1
      applications/ChatDemo/Bootstrap/Gateway.php
  2. 1 0
      applications/ChatDemo/Event.php

+ 0 - 1
applications/ChatDemo/Bootstrap/Gateway.php

@@ -10,7 +10,6 @@
  */
 define('ROOT_DIR', realpath(__DIR__.'/../'));
 require_once ROOT_DIR . '/Protocols/GatewayProtocol.php';
-require_once ROOT_DIR . '/Protocols/JsonProtocol.php';
 require_once ROOT_DIR . '/Lib/Store.php';
 require_once ROOT_DIR . '/Event.php';
 require_once ROOT_DIR . '/Lib/StatisticClient.php';

+ 1 - 0
applications/ChatDemo/Event.php

@@ -6,6 +6,7 @@
  * 
  */
 
+require_once ROOT_DIR . '/Protocols/JsonProtocol.php';
 class Event
 {
     /**