for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BringYourOwnIdeas\SecurityChecker\Jobs;
use BringYourOwnIdeas\SecurityChecker\Tasks\SecurityAlertCheckTask;
use SilverStripe\Core\Injector\Injector;
use Symbiote\QueuedJobs\Services\QueuedJob;
use Symbiote\QueuedJobs\Services\AbstractQueuedJob;
/**
* Composer security checker job. Runs the task which does the check as a queuedjob.
*
* @author Peter Thaleikis
* @license BSD-3-Clause
*/
class SecurityAlertCheckJob extends AbstractQueuedJob implements QueuedJob
{
public function getTitle()
return _t(
__CLASS__ . '.Title',
'Check if any composer managed modules have known security vulnerabilities.'
);
}
public function getJobType()
$this->totalSteps = 1;
return QueuedJob::QUEUED;
public function process()
// run the task
$task = Injector::inst()->create(SecurityAlertCheckTask::class);
$task->run(null);
// mark job as completed
$this->isComplete = true;