This commit is contained in:
parent
a3033abd95
commit
62b7e92234
10
test-bootstrap.php
Normal file
10
test-bootstrap.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
// 全局 Composer 自动加载器(PHPUnit 和其他全局包)
|
||||
require '/root/.composer/vendor/autoload.php';
|
||||
|
||||
// 当前项目的自动加载(Workerman 和你自己写的类)
|
||||
$loader = require __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
// 可选:合并命名空间
|
||||
// 如果你在 composer.json 中有 autoload 配置,上面这句就能加载你的 App\ 类
|
Loading…
x
Reference in New Issue
Block a user