Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Update config to reflect changes in CLI interaction #112

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading