PHP code example of job-runner / symfony-notifier-adapter
1. Go to this page and download the library: Download job-runner/symfony-notifier-adapter 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/ */
job-runner / symfony-notifier-adapter example snippets
declare(strict_types=1);
use JobRunner\JobRunner\Job\CliJob;
use JobRunner\JobRunner\Job\JobList;
use JobRunner\JobRunner\CronJobRunner;
use Symfony\Component\Notifier\Bridge\RocketChat\RocketChatTransport;
use Symfony\Component\Notifier\Channel\ChatChannel;
use Symfony\Component\Notifier\Notifier;
use JobRunner\JobRunner\SymfonyNotifier\SymfonyNotifierEventListener;
notifier))->withNotificationChannelFail(['chat']))
->run($jobCollection);