Skip to content

Commit

Permalink
Merge pull request #788 from swoftcloud/master
Browse files Browse the repository at this point in the history
Add composer
  • Loading branch information
stelin committed Jul 8, 2019
2 parents 88b8b4c + 8705612 commit ff5da5a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 21 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controller/ValidatorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function validateAll(Request $request): array
* Verify only the type field in the TestValidator validator
*
* @RequestMapping()
* @Validate(validator="TestValidator",fields={"type"})
* @Validate(validator="TestValidator", fields={"type"})
*
* @param Request $request
*
Expand All @@ -48,7 +48,7 @@ function validateType(Request $request): array
* Verify only the password field in the TestValidator validator
*
* @RequestMapping()
* @Validate(validator="TestValidator",fields={"password"})
* @Validate(validator="TestValidator", fields={"password"})
*
* @param Request $request
*
Expand Down
13 changes: 3 additions & 10 deletions app/bean.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
],
'db' => [
'class' => Database::class,
'dsn' => 'mysql:dbname=test;host=172.17.0.3',
'dsn' => 'mysql:dbname=test;host=192.168.4.11',
'username' => 'root',
'password' => 'swoft123456',
],
'db2' => [
'class' => Database::class,
'dsn' => 'mysql:dbname=test2;host=172.17.0.3',
'dsn' => 'mysql:dbname=test2;host=192.168.4.11',
'username' => 'root',
'password' => 'swoft123456',
'dbSelector' => bean(DbSelector::class)
Expand All @@ -62,7 +62,7 @@
],
'db3' => [
'class' => Database::class,
'dsn' => 'mysql:dbname=test2;host=172.17.0.3',
'dsn' => 'mysql:dbname=test2;host=192.168.4.11',
'username' => 'root',
'password' => 'swoft123456'
],
Expand Down Expand Up @@ -112,12 +112,5 @@
],
'cliRouter' => [
// 'disabledGroups' => ['demo', 'test'],
],
'apollo' => [
'host' => '192.168.4.11',
'timeout' => -1
],
'consul' => [
'host' => '192.168.4.11'
]
];
8 changes: 0 additions & 8 deletions bin/test.php

This file was deleted.

8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@
"swoft/http-server": "~2.0.0",
"swoft/rpc-client": "~2.0.0",
"swoft/rpc-server": "~2.0.0",
"swoft/websocket-server": "~2.0.0"
"swoft/websocket-server": "~2.0.0",
"swoft/tcp": "~2.0.0",
"swoft/tcp-server": "~2.0.0",
"swoft/apollo": "~2.0.0",
"swoft/consul": "~2.0.0",
"swoft/limiter": "~2.0.0",
"swoft/breaker": "~2.0.0"
},
"require-dev": {
"swoft/swoole-ide-helper": "dev-master",
Expand Down

0 comments on commit ff5da5a

Please sign in to comment.