You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configurating health check - all available you can see [here](https://github.com/MacPaw/symfony-health-check-bundle/tree/master/src/Check).
66
39
67
40
```yaml
41
+
# config/packages/symfony_health_check.yaml`
68
42
symfony_health_check:
69
43
health_checks:
70
-
- id: symfony_health_check.doctrine_check
44
+
- id: symfony_health_check.doctrine_orm_check
71
45
ping_checks:
72
46
- id: symfony_health_check.status_up_check
73
47
```
@@ -77,7 +51,7 @@ Change response code:
77
51
```yaml
78
52
symfony_health_check:
79
53
health_checks:
80
-
- id: symfony_health_check.doctrine_check
54
+
- id: symfony_health_check.doctrine_orm_check
81
55
ping_checks:
82
56
- id: symfony_health_check.status_up_check
83
57
ping_error_response_code: 500
@@ -98,11 +72,11 @@ Step 3: Configuration
98
72
99
73
Security Optional:
100
74
----------------------------------
101
-
`config/packages/security.yaml`
102
75
103
76
If you are using [symfony/security](https://symfony.com/doc/current/security.html) and your health check is to be used anonymously, add a new firewall to the configuration
104
77
105
78
```yaml
79
+
# config/packages/security.yaml
106
80
firewalls:
107
81
healthcheck:
108
82
pattern: ^/health
@@ -142,14 +116,15 @@ Then we add our custom health check to collection
142
116
```yaml
143
117
symfony_health_check:
144
118
health_checks:
145
-
- id: symfony_health_check.doctrine_check
119
+
- id: symfony_health_check.doctrine_orm_check
146
120
- id: custom_health_check // custom service check id
147
121
```
148
122
149
123
How Change Route:
150
124
----------------------------------
151
-
You can change the default behavior with a light configuration, remember to return to Step 3 after that:
125
+
You can change the default behavior with a light configuration, remember to modify the routes.
<deprecatedpackage="macpaw/symfony-health-check-bundle"version="1.4.2">The "%service_id%" service alias is deprecated, use symfony_health_check.doctrine_orm_check instead</deprecated>
0 commit comments