diff options
author | Valery Piashchynski <[email protected]> | 2021-06-16 12:56:02 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-16 12:56:02 +0300 |
commit | cee4bc46097506d6e892b6af194751434700621a (patch) | |
tree | e542d1b2f963c2aa0e304703c82ff4f04203b169 /plugins/jobs/oooold/tests/Jobs/Beanstalk/Job.php | |
parent | d4c92e48bada7593b6fbec612a742c599de6e736 (diff) |
- Update jobs sources
- Update Arch diagramm
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/oooold/tests/Jobs/Beanstalk/Job.php')
-rw-r--r-- | plugins/jobs/oooold/tests/Jobs/Beanstalk/Job.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/jobs/oooold/tests/Jobs/Beanstalk/Job.php b/plugins/jobs/oooold/tests/Jobs/Beanstalk/Job.php new file mode 100644 index 00000000..f8bd541a --- /dev/null +++ b/plugins/jobs/oooold/tests/Jobs/Beanstalk/Job.php @@ -0,0 +1,26 @@ +<?php + +/** + * Spiral Framework. + * + * @license MIT + * @author Anton Titov (Wolfy-J) + */ + +declare(strict_types=1); + +namespace Spiral\Jobs\Tests\Beanstalk; + +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') + )); + } +} |