]> _ Git - cubist_cms-back.git/commitdiff
wip #4210
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 16 Jun 2022 09:58:27 +0000 (11:58 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 16 Jun 2022 09:58:27 +0000 (11:58 +0200)
src/app/Jobs/Base.php [new file with mode: 0644]
src/app/Jobs/ModelsPrecache.php [new file with mode: 0644]

diff --git a/src/app/Jobs/Base.php b/src/app/Jobs/Base.php
new file mode 100644 (file)
index 0000000..79ff99a
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+
+namespace Cubist\Backpack\Jobs;
+
+use Illuminate\Bus\Queueable;
+use Illuminate\Contracts\Queue\ShouldQueue;
+use Illuminate\Foundation\Bus\Dispatchable;
+use Illuminate\Queue\InteractsWithQueue;
+use Illuminate\Queue\SerializesModels;
+
+class Base implements ShouldQueue
+{
+    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
+
+    protected $jobName = 'job';
+
+    /**
+     * @var User
+     */
+    protected $user;
+
+
+    public function __construct()
+    {
+    }
+
+    /**
+     * @return string
+     */
+    public function getJobName(): string
+    {
+        return $this->jobName;
+    }
+
+    /**
+     * @param string $jobName
+     */
+    public function setJobName(string $jobName): void
+    {
+        $this->jobName = $jobName;
+    }
+}
diff --git a/src/app/Jobs/ModelsPrecache.php b/src/app/Jobs/ModelsPrecache.php
new file mode 100644 (file)
index 0000000..050295a
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+
+namespace Cubist\Backpack\Jobs;
+
+class ModelsPrecache extends Base
+{
+
+}