diff options
author | Valery Piashchynski <[email protected]> | 2021-06-15 22:12:32 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-15 22:12:32 +0300 |
commit | d4c92e48bada7593b6fbec612a742c599de6e736 (patch) | |
tree | 53b6fb81987953b71a77ae094e579a0a7daa407c /plugins/jobs/tests/Jobs/Sqs/Job.php | |
parent | 9dc98d43b0c0de3e1e1bd8fdc97c122c7c7c594f (diff) |
- Jobs plugin initial commit
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/tests/Jobs/Sqs/Job.php')
-rw-r--r-- | plugins/jobs/tests/Jobs/Sqs/Job.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/jobs/tests/Jobs/Sqs/Job.php b/plugins/jobs/tests/Jobs/Sqs/Job.php new file mode 100644 index 00000000..e22483a8 --- /dev/null +++ b/plugins/jobs/tests/Jobs/Sqs/Job.php @@ -0,0 +1,26 @@ +<?php + +/** + * Spiral Framework. + * + * @license MIT + * @author Anton Titov (Wolfy-J) + */ + +declare(strict_types=1); + +namespace Spiral\Jobs\Tests\Sqs; + +use Spiral\Jobs\JobHandler; + +class Job extends JobHandler +{ + public const JOB_FILE = __DIR__ . '/../../local.job'; + + public function invoke(string $id, array $payload): void + { + file_put_contents(self::JOB_FILE, json_encode( + $payload + compact('id') + )); + } +} |