Skip to content

Commit 1eab937

Browse files
committed
feat(composer): add suggestions for Hyperf packages and update extra configuration
1 parent 349fd5a commit 1eab937

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

composer.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
"mockery/mockery": "^1.0",
2525
"phpstan/phpstan": "^1.0"
2626
},
27+
"suggest": {
28+
"hyperf/config": "^2.2 || ^3.0",
29+
"hyperf/di": "^2.2 || ^3.0",
30+
"hyperf/logger": "^2.2 || ^3.0",
31+
"hyperf/framework": "^2.2 || ^3.0"
32+
},
2733
"autoload": {
2834
"psr-4": {
2935
"Dtyq\\PhpMcp\\": "src/"
@@ -40,5 +46,10 @@
4046
"test:integration": "phpunit -c phpunit.xml --testsuite=integration --colors=always",
4147
"analyse": "phpstan analyse --memory-limit 1024M -c phpstan.neon",
4248
"cs-fix": "php-cs-fixer fix $1"
49+
},
50+
"extra": {
51+
"hyperf": {
52+
"config": "Dtyq\\PhpMcp\\Server\\Framework\\Hyperf\\ConfigProvider"
53+
}
4354
}
4455
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
/**
5+
* Copyright (c) The Magic , Distributed under the software license
6+
*/
7+
8+
namespace Dtyq\PhpMcp\Server\Framework\Hyperf;
9+
10+
class ConfigProvider
11+
{
12+
public function __invoke(): array
13+
{
14+
return [
15+
'publish' => [
16+
],
17+
'dependencies' => [
18+
],
19+
];
20+
}
21+
}

0 commit comments

Comments
 (0)