File tree 4 files changed +20
-14
lines changed
4 files changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Add Kubernetes style health checks to your Craft site.
6
6
7
7
## Requirements
8
8
9
- This plugin requires Craft CMS 4.0.0-alpha or later.
9
+ This plugin requires Craft CMS 3.x / 4.x
10
10
11
11
## Installation
12
12
@@ -18,7 +18,7 @@ To install the plugin, follow these instructions.
18
18
19
19
2 . Then tell Composer to load the plugin:
20
20
21
- composer require mccallister /healthz
21
+ composer require customd /healthz
22
22
23
23
3 . In the Control Panel, go to Settings → Plugins and click the “Install” button for Healthz.
24
24
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " mccallister /healthz" ,
2
+ "name" : " customd /healthz" ,
3
3
"description" : " Add health checks to your Craft website, useful when running inside of Docker" ,
4
4
"type" : " craft-plugin" ,
5
5
"keywords" : [
14
14
" load balancer"
15
15
],
16
16
"support" : {
17
- "docs" : " https://github.com/jasonmccallister /craft-healthz" ,
18
- "issues" : " https://github.com/jasonmccallister /craft-healthz/issues"
17
+ "docs" : " https://github.com/customd /craft-healthz" ,
18
+ "issues" : " https://github.com/customd /craft-healthz/issues"
19
19
},
20
20
"license" : " MIT" ,
21
21
"authors" : [{
22
22
"name" : " Jason McCallister" ,
23
23
"homepage" : " https://mccallister.io" ,
24
24
"email" : " themccallister@gmail.com"
25
- }],
25
+ },
26
+ {
27
+ "name" : " Custom D" ,
28
+ "homepage" : " https://customd.com"
29
+ }
30
+ ],
26
31
"require" : {
27
- "craftcms/cms" : " ^4.0.0-alpha "
32
+ "craftcms/cms" : " ^3.0.0|^ 4.0.0"
28
33
},
29
34
"autoload" : {
30
35
"psr-4" : {
31
- "mccallister \\ healthz\\ " : " src/"
36
+ "customd \\ healthz\\ " : " src/"
32
37
}
33
38
},
34
39
"extra" : {
35
40
"name" : " Healthz" ,
36
41
"handle" : " healthz" ,
37
42
"hasCpSettings" : false ,
38
43
"hasCpSection" : false ,
39
- "changelogUrl" : " https://raw.githubusercontent.com/jasonmccallister /craft-healthz/master/CHANGELOG.md" ,
40
- "class" : " mccallister \\ healthz\\ Healthz"
44
+ "changelogUrl" : " https://raw.githubusercontent.com/customd /craft-healthz/master/CHANGELOG.md" ,
45
+ "class" : " cusotmd \\ healthz\\ Healthz"
41
46
},
42
47
"require-dev" : {
43
48
"craftcms/rector" : " dev-main"
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace mccallister \healthz ;
3
+ namespace customd \healthz ;
4
4
5
5
use Craft ;
6
6
use craft \base \Plugin ;
Original file line number Diff line number Diff line change 9
9
* @copyright Copyright (c) 2019 Jason McCallister
10
10
*/
11
11
12
- namespace mccallister \healthz \controllers ;
12
+ namespace customd \healthz \controllers ;
13
13
14
14
use Craft ;
15
15
use craft \web \Controller ;
@@ -45,8 +45,9 @@ class LivenessController extends Controller
45
45
* The actions must be in 'kebab-case'
46
46
* @access protected
47
47
*/
48
- protected array |int |bool $ allowAnonymous = ['index ' ];
49
-
48
+ protected array |int |bool $ allowAnonymous = [
49
+ 'index ' => self ::ALLOW_ANONYMOUS_LIVE | self ::ALLOW_ANONYMOUS_OFFLINE
50
+ ];
50
51
// Public Methods
51
52
// =========================================================================
52
53
You can’t perform that action at this time.
0 commit comments