Prechádzať zdrojové kódy

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

walkor 11 rokov pred
rodič
commit
eac136b585

+ 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
 {
     /**