silverstripe-environmentcheck/code/DevHealthController.php

15 lines
335 B
PHP
Raw Normal View History

<?php
class DevHealthController extends Controller {
2013-06-21 05:36:45 +02:00
public static $allowed_actions = array(
'index'
);
function index() {
$e = new EnvironmentChecker('health', 'Site health');
2013-06-21 05:36:45 +02:00
$e->init(''); //empty permission check, the "health" check does not require a permission check to run
$e->setErrorCode(404);
return $e;
}
}