Skip to content

Commit

Permalink
Update UPGRADE-1.0.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Yozhef authored Jan 18, 2022
1 parent 0379428 commit 91074b2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions UPGRADE-1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,35 @@ Security Optional:
security: false
```

Step 3: Update Custom Health Check
----------------------------------
We need change return type array -> Response class


### Old:
```
use SymfonyHealthCheckBundle\Dto\Response;

class StatusUpCheck implements CheckInterface
{
public function check(): array
{
return ['status' => 'up'];
}
}
```
### New:
```
use SymfonyHealthCheckBundle\Dto\Response;

class StatusUpCheck implements CheckInterface
{
public function check(): Response
{
return new Response('status', true, 'up');
}
}
```

0 comments on commit 91074b2

Please sign in to comment.