PHP code example of t3n / jobqueue-log
1. Go to this page and download the library: Download t3n/jobqueue-log 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/ */
t3n / jobqueue-log example snippets
/**
* @Flow\Inject
*
* @var JobManager
*/
protected $jobManager;
[...]
$message = new LogJob(string $subject, string $label, string $messageBody, array $additionalData, string $severity);
$this->jobManager->queue('log-message', $message);