silverstripe-environmentcheck/code/DevHealthController.php

9 lines
172 B
PHP

<?php
class DevHealthController extends Controller {
function index() {
$e = new EnvironmentChecker('health', 'Site health');
$e->setErrorCode(404);
return $e;
}
}