for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\EnvironmentCheck\Controllers;
use SilverStripe\Control\Controller;
use SilverStripe\EnvironmentCheck\EnvironmentChecker;
/**
* Class DevCheckController
*
* @package environmentcheck
*/
class DevCheckController extends Controller
{
* @var array
private static $allowed_actions = [
$allowed_actions
This check marks private properties in classes that are never used. Those properties can be removed.
'index'
];
* Permission code to check for access to this controller.
* @var string
private static $permission = 'ADMIN';
$permission
* @param HTTPRequest $request
* @return EnvironmentChecker
* @throws HTTPResponse_Exception
public function index($request)
$suite = 'check';
if ($name = $request->param('Suite')) {
$suite = $name;
}
$checker = new EnvironmentChecker($suite, 'Environment status');
$checker->init($this->config()->permission);
return $checker;