Skip to content

Commit

Permalink
chore: add new package, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Nov 5, 2021
1 parent cd6757d commit 3475901
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ kite markdown FILE

```php
'php:serve' => [
'hce-file' => 'test/clienttest/http-client.env.json',
'hce-file' => 'test/httptest/http-client.env.json',
'hce-env' => getenv('APP_ENV') ?: 'dev',
// document root
'root' => 'public',
Expand All @@ -518,7 +518,7 @@ kite markdown FILE

这时 `hce-file`, `hce-env` 就可以排上用场,可以在每个项目里添加一份http-client环境文件,并且规划好每个服务的端口

示例文件 [test/clienttest/http-client.env.json](test/clienttest/http-client.env.json)
示例文件 [test/httptest/http-client.env.json](test/httptest/http-client.env.json)

```json
{
Expand Down Expand Up @@ -706,7 +706,7 @@ kite 里除了提供 `scripts` 访问执行外部命令,还可以编写自定
```php
<?php

use Inhere\Console\IO\Input;
use Inhere\Console\IO\Output;
use Inhere\Kite\Console\CliApplication;
use Inhere\Kite\Console\Plugin\AbstractPlugin;

Expand All @@ -722,7 +722,7 @@ class DemoPlugin extends AbstractPlugin
];
}

public function exec(CliApplication $app, Input $input): void
public function exec(CliApplication $app, Output $output): void
{
vdump(__METHOD__);
}
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"guzzlehttp/guzzle": "^7.3",
"http-interop/http-factory-guzzle": "^1.0",
"dragonmantank/cron-expression": "^3.1",
"nette/neon": "^3.3",
"symfony/expression-language": "^5.3",
"symfony/yaml": "^5.3",
"monolog/monolog": "^2.3",
Expand Down

0 comments on commit 3475901

Please sign in to comment.