Skip to content

Commit

Permalink
ENH Update config to reflect changes in CLI interaction (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Sep 26, 2024
1 parent 9cd1ae9 commit 51b9b64
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 76 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ SilverStripe\EnvironmentCheck\EnvironmentCheckSuite:
* `HasClassCheck`: Check that the given class exists.
This can be used to check that PHP modules or features are installed.
* `FileWriteableCheck`: Check that the given file is writeable.
* `FileAccessibilityAndValidationCheck`: Check that a given file is accessible and optionally matches a given format.
* `FileAccessibilityAndValidationCheck`: Check that a given file is accessible and optionally matches a given format.
* `FileAgeCheck`: Checks for the maximum age of one or more files or folders.
Useful for files which should be frequently auto-generated,
like static caches, as well as for backup files and folders.
Expand Down
70 changes: 0 additions & 70 deletions _config.php

This file was deleted.

8 changes: 3 additions & 5 deletions _config/routes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ Name: environmentcheckroutes
SilverStripe\Control\Director:
rules:
'health/check': 'Silverstripe\EnvironmentCheck\Controllers\DevHealthController'
'dev/check/$Suite': 'Silverstripe\EnvironmentCheck\Controllers\DevCheckController'

SilverStripe\Dev\DevelopmentAdmin:
registered_controllers:
controllers:
check:
controller: Silverstripe\EnvironmentCheck\Controllers\DevCheckController
links:
check: 'Run registered environment checks and display their status'
class: Silverstripe\EnvironmentCheck\Controllers\DevCheckController
description: 'Run registered environment checks and display their status'

---
Name: environmentcheckroutes-dev_urls-confirmation-exceptions
Expand Down
4 changes: 4 additions & 0 deletions src/Controllers/DevCheckController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
*/
class DevCheckController extends Controller
{
private static $url_handlers = [
'$Suite' => 'index',
];

/**
* @var array
*/
Expand Down

0 comments on commit 51b9b64

Please sign in to comment.