瀏覽代碼

Update InboxWorker

Daniel Supernault 6 年之前
父節點
當前提交
ef10c24d16
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      app/Jobs/InboxPipeline/InboxWorker.php

+ 4 - 4
app/Jobs/InboxPipeline/InboxWorker.php

@@ -14,7 +14,7 @@ class InboxWorker implements ShouldQueue
 {
     use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
 
-    protected $request;
+    protected $headers;
     protected $profile;
     protected $payload;
 
@@ -23,9 +23,9 @@ class InboxWorker implements ShouldQueue
      *
      * @return void
      */
-    public function __construct($request, Profile $profile, $payload)
+    public function __construct($headers, $profile, $payload)
     {
-        $this->request = $request;
+        $this->headers = $headers;
         $this->profile = $profile;
         $this->payload = $payload;
     }
@@ -37,6 +37,6 @@ class InboxWorker implements ShouldQueue
      */
     public function handle()
     {
-        (new Inbox($this->request, $this->profile, $this->payload))->handle();
+        (new Inbox($this->headers, $this->profile, $this->payload))->handle();
     }
 }