Bläddra i källkod

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

walkor 11 år sedan
förälder
incheckning
eac136b585
2 ändrade filer med 1 tillägg och 1 borttagningar
  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
 {
     /**