mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-04 12:47:55 +08:00
Update AnnotationJob.php
This commit is contained in:
parent
75b2848827
commit
9bc94c3752
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user