2012-01-10 07:28:04 +01:00
|
|
|
<?php
|
|
|
|
|
2012-01-20 18:10:48 +01:00
|
|
|
class DevHealthController extends Controller {
|
2013-06-21 05:36:45 +02:00
|
|
|
|
|
|
|
public static $allowed_actions = array(
|
|
|
|
'index'
|
|
|
|
);
|
|
|
|
|
2012-01-10 07:28:04 +01:00
|
|
|
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
|
2012-01-10 07:28:04 +01:00
|
|
|
$e->setErrorCode(404);
|
|
|
|
return $e;
|
|
|
|
}
|
2015-04-08 07:25:02 +02:00
|
|
|
}
|