Skip to content

Commit

Permalink
优化代码 (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft authored Dec 31, 2021
1 parent e4973dc commit 6034aad
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
41 changes: 22 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{
"name": "imiphp/imi-fpm",
"type": "library",
"license": "MulanPSL-1.0",
"description": "imi php-fpm component",
"require": {},
"require-dev": {
"phpunit/phpunit": ">=8"
},
"autoload": {
"psr-4": {
"Imi\\Fpm\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Imi\\Fpm\\Test\\": "tests/"
}
}
{
"name": "imiphp/imi-fpm",
"type": "library",
"license": "MulanPSL-1.0",
"description": "imi php-fpm component",
"require": {},
"require-dev": {
"phpunit/phpunit": ">=8"
},
"autoload": {
"psr-4": {
"Imi\\Fpm\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Imi\\Fpm\\Test\\": "tests/"
},
"files": [
"../../../vendor/autoload.php"
]
}
}
3 changes: 1 addition & 2 deletions tests/Web/public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
use Imi\AppContexts;
use Imi\Fpm\FpmApp;

require_once \dirname(__DIR__, 6) . '/vendor/' . 'autoload.php';
require_once \dirname(__DIR__, 3) . '/vendor/' . 'autoload.php';
require_once \dirname(__DIR__, 3) . '/vendor/autoload.php';

App::set(AppContexts::APP_PATH, \dirname(__DIR__), true);
App::run('Imi\Fpm\Test\Web', FpmApp::class);
1 change: 0 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use function Imi\env;

require \dirname(__DIR__, 4) . '/vendor/autoload.php';
require \dirname(__DIR__) . '/vendor/autoload.php';

/**
Expand Down

0 comments on commit 6034aad

Please sign in to comment.