for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Thinktomorrow\Chief\HealthMonitor;
use Thinktomorrow\Chief\HealthMonitor\Checks\HomepageCheck;
use Thinktomorrow\Chief\HealthMonitor\Notifiers\AlertBarNotifier;
class Monitor
{
private static $checks = [
HomepageCheck::class => AlertBarNotifier::class
];
public static function check()
foreach(static::$checks as $check => $notifier)
$checks
static
self
$checker = (new $check);
$notifier = (new $notifier);
if(!$checker->check())
return $notifier->notify($checker->notify());
}