Update AnnotationJob.php

This commit is contained in:
李铭昕 2019-08-15 17:35:56 +08:00
parent 75b2848827
commit 9bc94c3752

View File

@ -12,6 +12,8 @@ declare(strict_types=1);
namespace Hyperf\AsyncQueue;
use Hyperf\Utils\ApplicationContext;
class AnnotationJob extends Job
{
/**
@ -38,5 +40,10 @@ class AnnotationJob extends Job
public function handle()
{
$container = ApplicationContext::getContainer();
$class = $container->get($this->class);
$class->{$this->method}(...$this->params);
}
}