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

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

parent 3d40e086
......@@ -10,7 +10,7 @@ use Hyperf\Di\Annotation\AbstractAnnotation;
/**
* @Annotation
* @Target("METHOD")
* @Target({"METHOD"})
*/
class AsyncCoroutine extends AbstractAnnotation
{
......
......@@ -9,7 +9,7 @@ use Hyperf\Di\Annotation\AbstractAnnotation;
/**
* @Annotation
* @Target("METHOD")
* @Target({"METHOD"})
*/
class LogTrace extends AbstractAnnotation
{
......
......@@ -9,15 +9,15 @@ use Meibuyu\Micro\Annotation\AsyncCoroutine;
use Hyperf\Utils\Coroutine;
/**
* @Aspect(
* annotations={
* AsyncCoroutine::class
* }
* )
* @Aspect()
*/
class AsyncCoroutineAspect extends AbstractAspect
{
public $annotations = [
AsyncCoroutine::class
];
/**
* 优先级
* @var int
......
......@@ -8,15 +8,15 @@ use Meibuyu\Micro\Annotation\LogTrace;
use Meibuyu\Micro\Handler\LogTrace\LogTraceHandler;
/**
* @Aspect(
* annotations={
* LogTrace::class
* }
* )
* @Aspect()
*/
class LogTraceAspect extends AbstractAspect
{
public $annotations = [
LogTrace::class
];
/**
* 优先级
* @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