mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
15 lines
335 B
PHP
15 lines
335 B
PHP
<?php
|
|
|
|
class DevHealthController extends Controller {
|
|
|
|
public static $allowed_actions = array(
|
|
'index'
|
|
);
|
|
|
|
function index() {
|
|
$e = new EnvironmentChecker('health', 'Site health');
|
|
$e->init(''); //empty permission check, the "health" check does not require a permission check to run
|
|
$e->setErrorCode(404);
|
|
return $e;
|
|
}
|
|
} |