Fixing deprecated usage of Director::addRules(), replace with YAML.

This commit is contained in:
Sean Harvey 2013-09-20 11:26:21 +12:00
parent 82241b4f9d
commit 3ff3b05692
2 changed files with 9 additions and 4 deletions

View File

@ -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
View File

@ -0,0 +1,9 @@
---
Name: environmentcheckroutes
After: 'framework/*','cms/*'
---
Director:
rules:
'dev/health': 'DevHealthController'
'dev/check': 'DevCheckController'