瀏覽代碼

add TermService

visuddhinanda 2 月之前
父節點
當前提交
d0b65a1792
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      api-v13/app/Console/Commands/UpdateCorpus.php

+ 5 - 0
api-v13/app/Console/Commands/UpdateCorpus.php

@@ -20,15 +20,20 @@ class UpdateCorpus extends Command
      */
     protected SentenceService $sentenceService;
 
+    protected TermService $termService;
+
     /**
      * Create a new command instance.
      *
      * @param SentenceService $sentenceService
      */
     public function __construct(SentenceService $sentenceService)
+    {
+    public function __construct(SentenceService $sentenceService, TermService $termService)
     {
         parent::__construct();
         $this->sentenceService = $sentenceService;
+        $this->termService = $termService;
     }
 
     /**