Skip to content

Instantly share code, notes, and snippets.

@alnutile
Created September 10, 2014 15:00
Show Gist options
  • Save alnutile/42dc700f5a785674492b to your computer and use it in GitHub Desktop.
Save alnutile/42dc700f5a785674492b to your computer and use it in GitHub Desktop.
protected function addToQueue($results_of_job_insert)
{
//1. Setup the Class Name
$class = 'BehatEditor\Reporting\ReportingOverviewJob';
//2. Setup the queue name
$queue_name = $_ENV["BEAN_QUEUE_REPORTING_OVERVIEW"];
//3. Setup the data attributes adding the uuid of the related ReportJobsTable
$data = [
'related_job' => $results_of_job_insert->id,
];
//4. Submit the queue and respond with?
$job = \Queue::push($class, $data, $queue_name);
return $job;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment