PMC-925 Create/Complete the class "EmailEvent" in "app/Jobs/"
This commit is contained in:
8
app/Jobs/EmailEvent.php
Normal file
8
app/Jobs/EmailEvent.php
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Jobs;
|
||||||
|
|
||||||
|
class EmailEvent extends QueuedClosure
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
21
app/Jobs/QueuedClosure.php
Normal file
21
app/Jobs/QueuedClosure.php
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Jobs;
|
||||||
|
|
||||||
|
use Closure;
|
||||||
|
use Illuminate\Queue\CallQueuedClosure;
|
||||||
|
use Illuminate\Queue\SerializableClosure;
|
||||||
|
|
||||||
|
abstract class QueuedClosure extends CallQueuedClosure
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new job instance.
|
||||||
|
*
|
||||||
|
* @param \Illuminate\Queue\SerializableClosure $closure
|
||||||
|
*/
|
||||||
|
public function __construct(Closure $closure)
|
||||||
|
{
|
||||||
|
parent::__construct(new SerializableClosure($closure));
|
||||||
|
}
|
||||||
|
}
|
||||||
8
app/Jobs/ScriptTask.php
Normal file
8
app/Jobs/ScriptTask.php
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Jobs;
|
||||||
|
|
||||||
|
class ScriptTask extends QueuedClosure
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
8
app/Jobs/ServiceTask.php
Normal file
8
app/Jobs/ServiceTask.php
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Jobs;
|
||||||
|
|
||||||
|
class ServiceTask extends QueuedClosure
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user