Skip to content

Commit 8e0ebf4

Browse files
committed
Moved annotation Command into hyperf\command.
1 parent 8e6fc5e commit 8e0ebf4

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
"phpunit/phpunit": "^7.0.0",
3030
"friendsofphp/php-cs-fixer": "^2.9"
3131
},
32+
"suggest": {
33+
"hyperf/di": "Require this component for annotation."
34+
},
3235
"scripts": {
3336
"test": "./vendor/bin/phpunit -c phpunit.xml",
3437
"co_test": "php tests/co_phpunit.php -c phpunit.xml"

src/Annotation/Command.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
/**
5+
* This file is part of Hyperf.
6+
*
7+
* @link https://hyperf.io
8+
* @document https://doc.hyperf.io
9+
* @contact group@hyperf.io
10+
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
11+
*/
12+
13+
namespace Hyperf\Command\Annotation;
14+
15+
use Hyperf\Di\Annotation\AbstractAnnotation;
16+
17+
/**
18+
* @Annotation
19+
* @Target({"CLASS"})
20+
*/
21+
class Command extends AbstractAnnotation
22+
{
23+
}

0 commit comments

Comments
 (0)