Skip to content

Commit 91074b2

Browse files
authoredJan 18, 2022
Update UPGRADE-1.0.md
1 parent 0379428 commit 91074b2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
 

‎UPGRADE-1.0.md

+32
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,35 @@ Security Optional:
8282
security: false
8383
```
8484

85+
Step 3: Update Custom Health Check
86+
----------------------------------
87+
We need change return type array -> Response class
88+
89+
90+
### Old:
91+
```
92+
use SymfonyHealthCheckBundle\Dto\Response;
93+
94+
class StatusUpCheck implements CheckInterface
95+
{
96+
public function check(): array
97+
{
98+
return ['status' => 'up'];
99+
}
100+
}
101+
```
102+
103+
### New:
104+
```
105+
use SymfonyHealthCheckBundle\Dto\Response;
106+
107+
class StatusUpCheck implements CheckInterface
108+
{
109+
public function check(): Response
110+
{
111+
return new Response('status', true, 'up');
112+
}
113+
}
114+
```
115+
116+

0 commit comments

Comments
 (0)
Please sign in to comment.