modify plugin name

This commit is contained in:
2022-06-16 17:38:23 +08:00
parent 10de6b5246
commit 4daad7d111
22 changed files with 1206 additions and 70 deletions
+4 -4
View File
@@ -4,7 +4,7 @@ namespace Kiri\Task\Annotation;
use Kiri\Annotation\AbstractAttribute;
use Kiri\Task\TaskManager;
use Kiri\Task\TaskContainer;
#[\Attribute(\Attribute::TARGET_CLASS)] class AsynchronousTask extends AbstractAttribute
{
@@ -25,9 +25,9 @@ use Kiri\Task\TaskManager;
*/
public function execute(mixed $class, mixed $method = ''): mixed
{
$AsyncTaskExecute = \Kiri::getDi()->get(TaskManager::class);
$AsyncTaskExecute->add($this->name, $class::class);
return parent::execute($class, $method); // TODO: Change the autogenerated stub
// TODO: Change the autogenerated stub
di(TaskContainer::class)->add($this->name, $class::class);
return parent::execute($class, $method);
}
}