|
2 | 2 |
|
3 | 3 | [](https://github.com/OpenConext/Monitor-bundle/actions/workflows/code_checks.yaml) |
4 | 4 |
|
5 | | -A Symfony 3/4/5 bundle that adds a /health and /info endpoint to your application. |
| 5 | +A Symfony 5/6/7 bundle that adds a /health and /info endpoint to your application. |
6 | 6 |
|
7 | 7 | The endpoints return JSON responses. The `/internal/info` endpoint tries to give as much information about the currently installed |
8 | 8 | version of the application as possible. This information is based on the build path of the installation. But also |
@@ -36,21 +36,21 @@ When a health check failed the HTTP Response status code will be 503. And the JS |
36 | 36 |
|
37 | 37 | ```php |
38 | 38 | // config/bundles.php |
39 | | - // in older Symfony apps, enable the bundle in app/AppKernel.php |
| 39 | + // in older Symfony apps, enable the bundle in config/bundles.php |
40 | 40 | return [ |
41 | 41 | // ... |
42 | 42 | OpenConext\MonitorBundle\OpenConextMonitorBundle::class => ['all' => true], |
43 | 43 | ]; |
44 | 44 | ``` |
45 | 45 | |
46 | | - * Include the routing configuration in `config/routes.yml` by adding: |
| 46 | + * Include the routing configuration in `config/routes.yaml` by adding: |
47 | 47 | ```yaml |
48 | 48 | open_conext_monitor: |
49 | 49 | resource: "@OpenConextMonitorBundle/Resources/config/routing.yml" |
50 | 50 | prefix: / |
51 | 51 | ``` |
52 | 52 | |
53 | | - * Add security exceptions in `config/packages/security.yml` (if this is required at all) |
| 53 | + * Add security exceptions in `config/packages/security.yaml` (if this is required at all) |
54 | 54 | ```yaml |
55 | 55 | security: |
56 | 56 | firewalls: |
@@ -104,7 +104,7 @@ class ApiHealthCheck implements HealthCheckInterface |
104 | 104 | registered health checkers. If everything was OK, just return the report that was passed to the method. |
105 | 105 |
|
106 | 106 | ### Register the checker |
107 | | -To actually include the home made checker simply tag it as being a |
| 107 | +To actually include the home made checker simply tag it with 'surfnet.monitor.health_check' |
108 | 108 |
|
109 | 109 | Example service definition in `services.yml` |
110 | 110 |
|
|
0 commit comments