Skip to content

Commit 1122de6

Browse files
author
lidanyang
committed
fix
1 parent b1f46a6 commit 1122de6

34 files changed

Lines changed: 177 additions & 280 deletions

composer.json

Lines changed: 39 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,46 @@
11
{
2-
"name": "coding-cat/hyperf-common",
3-
"type": "library",
4-
"description": "Coding Cat Hyperf Skeleton",
2+
"name": "coding-cat/hyperf-common",
3+
"type": "library",
4+
"description": "Coding Cat Hyperf Skeleton",
5+
"require": {
6+
"ext-json": "*",
7+
"ext-pdo": "*",
58

6-
"require": {
7-
"ext-json": "*",
8-
"ext-pdo": "*",
9+
"hyperf/constants": "~1.1.0",
10+
"hyperf/cache": "~1.1.0",
11+
"hyperf/command": "~1.1.0",
12+
"hyperf/config": "~1.1.0",
13+
"hyperf/contract": "~1.1.0",
14+
"hyperf/database": "~1.1.0",
15+
"hyperf/db-connection": "~1.1.0",
16+
"hyperf/devtool": "~1.1.0",
17+
"hyperf/di": "~1.1.0",
18+
"hyperf/dispatcher": "~1.1.0",
19+
"hyperf/event": "~1.1.0",
20+
"hyperf/exception-handler": "~1.1.0",
21+
"hyperf/framework": "~1.1.0",
22+
"hyperf/guzzle": "~1.1.0",
23+
"hyperf/http-server": "~1.1.0",
24+
"hyperf/logger": "~1.1.0",
25+
"hyperf/memory": "~1.1.0",
26+
"hyperf/paginator": "~1.1.0",
27+
"hyperf/pool": "~1.1.0",
28+
"hyperf/process": "~1.1.0",
29+
"hyperf/redis": "~1.1.0",
30+
"hyperf/utils": "~1.1.0",
931

10-
"hyperf/constants": "~1.1.0",
11-
"hyperf/cache": "~1.1.0",
12-
"hyperf/command": "~1.1.0",
13-
"hyperf/config": "~1.1.0",
14-
"hyperf/contract": "~1.1.0",
15-
"hyperf/database": "~1.1.0",
16-
"hyperf/db-connection": "~1.1.0",
17-
"hyperf/devtool": "~1.1.0",
18-
"hyperf/di": "~1.1.0",
19-
"hyperf/dispatcher": "~1.1.0",
20-
"hyperf/event": "~1.1.0",
21-
"hyperf/exception-handler": "~1.1.0",
22-
"hyperf/framework": "~1.1.0",
23-
"hyperf/guzzle": "~1.1.0",
24-
"hyperf/http-server": "~1.1.0",
25-
"hyperf/logger": "~1.1.0",
26-
"hyperf/memory": "~1.1.0",
27-
"hyperf/paginator": "~1.1.0",
28-
"hyperf/pool": "~1.1.0",
29-
"hyperf/process": "~1.1.0",
30-
"hyperf/redis": "~1.1.0",
31-
"hyperf/utils": "~1.1.0",
32+
"coding-cat/common-helper": "~0.1",
3233

33-
"coding-cat/common-helper": "~0.1",
34-
"particle/validator": "^2.3",
35-
"marc-mabe/php-enum": "v3.0.2"
36-
},
37-
38-
"autoload": {
39-
"psr-4": {
40-
"Lib\\": "src/"
34+
"particle/validator": "^2.3",
35+
"marc-mabe/php-enum": "v3.0.2"
4136
},
42-
"files": [
43-
"src/functions.php"
44-
]
45-
},
46-
"autoload-dev": {
47-
"psr-4": {
48-
"App\\": "app/"
37+
38+
"autoload": {
39+
"psr-4": {
40+
"CC\\Hyperf\\Common\\": "src/"
41+
},
42+
"files": [
43+
"src/functions.php"
44+
]
4945
}
50-
}
5146
}

src/Component/Commands/Ast/ModelUpdateVisitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
declare(strict_types=1);
33

44

5-
namespace Lib\Component\Commands\Ast;
5+
namespace CC\Hyperf\Common\Component\Commands\Ast;
66

77
use PhpParser\Comment\Doc;
88
use PhpParser\Node;

src/Component/Log/Log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
declare(strict_types=1);
33

44

5-
namespace Lib\Component\Log;
5+
namespace CC\Hyperf\Common\Component\Log;
66

77

88
use Hyperf\Logger\Logger;

src/Component/Log/LoggerFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55

6-
namespace Lib\Component\Log;
6+
namespace CC\Hyperf\Common\Component\Log;
77

88
use Hyperf\Logger\LoggerFactory as HyperfLoggerFactory;
99
use Psr\Container\ContainerInterface;

src/Component/PhpDocReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Lib\Component;
3+
namespace CC\Hyperf\Common\Component;
44

55
use Reflector;
66
use ReflectionClass;

src/Component/Validator/Chain.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
declare(strict_types=1);
33

44

5-
namespace Lib\Component\Validator;
5+
namespace CC\Hyperf\Common\Component\Validator;
66

7-
use Lib\Component\Validator\Rules\IP;
8-
use Lib\Component\Validator\Rules\Each;
9-
use Lib\Component\Validator\Rules\EnumClass;
7+
use CC\Hyperf\Common\Component\Validator\Rules\IP;
8+
use CC\Hyperf\Common\Component\Validator\Rules\Each;
9+
use CC\Hyperf\Common\Component\Validator\Rules\EnumClass;
1010
use Particle\Validator\Chain as DefaultChain;
1111

1212
class Chain extends DefaultChain

src/Component/Validator/Rules/Each.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
declare(strict_types=1);
33

44

5-
namespace Lib\Component\Validator\Rules;
5+
namespace CC\Hyperf\Common\Component\Validator\Rules;
66

77

88
use Particle\Validator\Rule;
9-
use Lib\Component\Validator\Validator;
9+
use CC\Hyperf\Common\Component\Validator\Validator;
1010
use Particle\Validator\ValidationResult;
1111

1212
class Each extends Rule

src/Component/Validator/Rules/EnumClass.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
declare(strict_types=1);
33

44

5-
namespace Lib\Component\Validator\Rules;
5+
namespace CC\Hyperf\Common\Component\Validator\Rules;
66

7-
use Lib\Exception\RuntimeException;
8-
use Lib\Framework\BaseEnum;
7+
use CC\Hyperf\Common\Exception\RuntimeException;
8+
use CC\Hyperf\Common\Framework\BaseEnum;
99
use Particle\Validator\Rule;
1010

1111
class EnumClass extends Rule

src/Component/Validator/Rules/IP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
declare(strict_types=1);
33

44

5-
namespace Lib\Component\Validator\Rules;
5+
namespace CC\Hyperf\Common\Component\Validator\Rules;
66

77
use Particle\Validator\Rule;
88

src/Component/Validator/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
declare(strict_types=1);
33

44

5-
namespace Lib\Component\Validator;
5+
namespace CC\Hyperf\Common\Component\Validator;
66

77
use Particle\Validator\Validator as DefaultValidator;
88

0 commit comments

Comments
 (0)