Commit 1ae6023a authored by Liu lu's avatar Liu lu

兼容hyperf框架1.1版本 注解写法

parent 3d40e086
...@@ -10,7 +10,7 @@ use Hyperf\Di\Annotation\AbstractAnnotation; ...@@ -10,7 +10,7 @@ use Hyperf\Di\Annotation\AbstractAnnotation;
/** /**
* @Annotation * @Annotation
* @Target("METHOD") * @Target({"METHOD"})
*/ */
class AsyncCoroutine extends AbstractAnnotation class AsyncCoroutine extends AbstractAnnotation
{ {
......
...@@ -9,7 +9,7 @@ use Hyperf\Di\Annotation\AbstractAnnotation; ...@@ -9,7 +9,7 @@ use Hyperf\Di\Annotation\AbstractAnnotation;
/** /**
* @Annotation * @Annotation
* @Target("METHOD") * @Target({"METHOD"})
*/ */
class LogTrace extends AbstractAnnotation class LogTrace extends AbstractAnnotation
{ {
......
...@@ -9,15 +9,15 @@ use Meibuyu\Micro\Annotation\AsyncCoroutine; ...@@ -9,15 +9,15 @@ use Meibuyu\Micro\Annotation\AsyncCoroutine;
use Hyperf\Utils\Coroutine; use Hyperf\Utils\Coroutine;
/** /**
* @Aspect( * @Aspect()
* annotations={
* AsyncCoroutine::class
* }
* )
*/ */
class AsyncCoroutineAspect extends AbstractAspect class AsyncCoroutineAspect extends AbstractAspect
{ {
public $annotations = [
AsyncCoroutine::class
];
/** /**
* 优先级 * 优先级
* @var int * @var int
......
...@@ -8,15 +8,15 @@ use Meibuyu\Micro\Annotation\LogTrace; ...@@ -8,15 +8,15 @@ use Meibuyu\Micro\Annotation\LogTrace;
use Meibuyu\Micro\Handler\LogTrace\LogTraceHandler; use Meibuyu\Micro\Handler\LogTrace\LogTraceHandler;
/** /**
* @Aspect( * @Aspect()
* annotations={
* LogTrace::class
* }
* )
*/ */
class LogTraceAspect extends AbstractAspect class LogTraceAspect extends AbstractAspect
{ {
public $annotations = [
LogTrace::class
];
/** /**
* 优先级 * 优先级
* @var int * @var int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment