Skip to content

Commit b93de9b

Browse files
committed
增加配置
1 parent 720a872 commit b93de9b

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
"cs-fix": "php-cs-fixer fix $1"
5050
},
5151
"extra": {
52+
"branch-alias": {
53+
"dev-main": "0.1-dev"
54+
},
5255
"hyperf": {
5356
"config": "Gemini\\DnsCloud\\ConfigProvider"
5457
}

src/ConfigProvider.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,21 @@ class ConfigProvider
1717
public function __invoke(): array
1818
{
1919
return [
20-
'dependencies' => [
21-
],
22-
'commands' => [
23-
],
2420
'annotations' => [
2521
'scan' => [
2622
'paths' => [
2723
__DIR__,
2824
],
2925
],
3026
],
27+
'publish' => [
28+
[
29+
'id' => 'config',
30+
'description' => 'The config for dns-cloud.',
31+
'source' => __DIR__ . '/../publish/dns_cloud.php',
32+
'destination' => BASE_PATH . '/config/autoload/dns_cloud.php',
33+
],
34+
],
3135
];
3236
}
3337
}

0 commit comments

Comments
 (0)