PMC-925 Create/Complete the class "EmailEvent" in "app/Jobs/"

This commit is contained in:
Roly Rudy Gutierrez Pinto
2019-07-10 16:16:05 -04:00
parent 4ebbb83f82
commit 901953782d
4 changed files with 45 additions and 0 deletions

8
app/Jobs/EmailEvent.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
namespace App\Jobs;
class EmailEvent extends QueuedClosure
{
}

View 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
View File

@@ -0,0 +1,8 @@
<?php
namespace App\Jobs;
class ScriptTask extends QueuedClosure
{
}

8
app/Jobs/ServiceTask.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
namespace App\Jobs;
class ServiceTask extends QueuedClosure
{
}