<?php namespace jobs; class CreateFile extends \Job { public function run() { $file = $this->input['file']; if (!touch($file)) throw new \Exception("failed to touch file '".$file."'"); } }
index : jobd-php-example.git | ||
real-world jobd integration example (php backend) | gitea |
aboutsummaryrefslogtreecommitdiff |
<?php namespace jobs; class CreateFile extends \Job { public function run() { $file = $this->input['file']; if (!touch($file)) throw new \Exception("failed to touch file '".$file."'"); } }