Skip to content

Commit e9a1daf

Browse files
committed
完全使用Composer
1 parent 66a5778 commit e9a1daf

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

webim_server.php

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,15 @@
22
define('DEBUG', 'on');
33
define('WEBPATH', __DIR__);
44

5-
/**
6-
* 没有composer: 直接将swoole/framework放到当前目录下
7-
*/
8-
if (is_file(__DIR__.'/framework/libs/lib_config.php'))
9-
{
10-
require __DIR__.'/framework/libs/lib_config.php';
11-
}
125
/**
136
* /vendor/autoload.php是Composer工具生成的
147
* shell: composer update
158
*/
16-
else
17-
{
18-
require __DIR__.'/vendor/autoload.php';
19-
/**
20-
* Swoole框架自动载入器初始化
21-
*/
22-
Swoole\Loader::vendor_init();
23-
}
9+
require __DIR__.'/vendor/autoload.php';
10+
/**
11+
* Swoole框架自动载入器初始化
12+
*/
13+
Swoole\Loader::vendorInit();
2414

2515
/**
2616
* 注册命名空间到自动载入器中

0 commit comments

Comments
 (0)