From 9a98ac50ff50dda2f2eed1ea825352c50c64440e Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 7 May 2021 23:39:20 +0300 Subject: initial --- src/jobs/Hello.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/jobs/Hello.php (limited to 'src/jobs/Hello.php') diff --git a/src/jobs/Hello.php b/src/jobs/Hello.php new file mode 100644 index 0000000..4fa2446 --- /dev/null +++ b/src/jobs/Hello.php @@ -0,0 +1,15 @@ +input['name'] ?? 'noname').".\n"; + $greetings .= "I'm writing you from ".__METHOD__.", my PID is ".getmypid()." and I'm executing job #".$this->id."."; + echo jsonEncode(['response' => $greetings]); + } + +} -- cgit v1.2.3