mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
Fixing deprecated usage of Director::addRules(), replace with YAML.
This commit is contained in:
parent
82241b4f9d
commit
3ff3b05692
@ -19,7 +19,3 @@
|
||||
// EnvironmentCheckSuite::register('check', 'FileWriteableCheck("assets")', "Is assets/ writeable?");
|
||||
// EnvironmentCheckSuite::register('check', 'FileWriteableCheck("' . TEMP_FOLDER . '")', "Is the temp folder writeable?");
|
||||
|
||||
Director::addRules(100, array(
|
||||
'dev/health' => 'DevHealthController',
|
||||
'dev/check' => 'DevCheckController',
|
||||
));
|
9
_config/routes.yml
Normal file
9
_config/routes.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
Name: environmentcheckroutes
|
||||
After: 'framework/*','cms/*'
|
||||
---
|
||||
Director:
|
||||
rules:
|
||||
'dev/health': 'DevHealthController'
|
||||
'dev/check': 'DevCheckController'
|
||||
|
Loading…
Reference in New Issue
Block a user