Skip to content

Commit 5c4f205

Browse files
authored
优化代码 (#240)
1 parent 50c57a5 commit 5c4f205

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"ApiDocApp\\": "example/",
2121
"Imi\\ApiDoc\\Test\\": "tests/",
2222
"Imi\\Server\\ApiDoc\\": "src/imi/Server/ApiDoc/"
23-
}
23+
},
24+
"files": [
25+
"../../../vendor/autoload.php"
26+
]
2427
},
2528
"scripts": {},
2629
"extra": {

example/bin/imi

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env php
22
<?php
3-
require_once dirname(__DIR__, 2) . '/vendor/' . 'autoload.php';
4-
require_once dirname(__DIR__, 5) . '/vendor/' . 'autoload.php';
3+
require_once dirname(__DIR__, 2) . '/vendor/autoload.php';
54

65
\Imi\App::setDebug(true);
76

0 commit comments

Comments
 (0)