Created
September 10, 2014 15:00
-
-
Save alnutile/42dc700f5a785674492b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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