PHP code example of studiobonito / silverstripe-queue
1. Go to this page and download the library: Download studiobonito/silverstripe-queue library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
studiobonito / silverstripe-queue example snippets
use StudioBonito\SilverStripe\Queue\QueueManager;
QueueManager::inst()->push('SendEmail', array('message' => $message));
class SendEmail {
public function run($job, $data)
{
// Code for processing job goes here.
}
}