Skip to content

Commit 90909df

Browse files
authored
Merge pull request #5 from OpenConext/feature/add-symfony-4-support
Add Symfony 4 support
2 parents 957b60a + b9bd282 commit 90909df

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@
77

88
language: php
99

10+
addons:
11+
apt:
12+
packages:
13+
- ant
14+
1015
php:
11-
- 5.6
12-
- 7.0
13-
- 7.1
16+
- 7.2
17+
- 7.4
1418

1519
matrix:
1620
allow_failures:
1721
- php: 7.0
18-
- php: 7.1
22+
- php: 7.4
1923

2024
env:
2125
global:

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "openconext/monitor-bundle",
33
"type": "symfony-bundle",
4-
"description": "A Symfony 3 bundle that facilitates health and info endpoints to a Symfony application. The bundle is backwards compatible with Symfony 2 projects.",
4+
"description": "A Symfony 4 bundle that facilitates health and info endpoints to a Symfony application. The bundle is backwards compatible with Symfony 2 projects.",
55
"keywords": ["SURFnet", "StepUp", "OpenConext", "monitoring", "health"],
66
"license": "Apache-2.0",
77
"minimum-stability": "stable",
88
"require": {
99
"php": ">=5.4,<8.0-dev",
10-
"symfony/dependency-injection": ">=2.7,<4",
11-
"symfony/framework-bundle": ">=2.7,<4",
10+
"symfony/dependency-injection": ">=3.4,<5",
11+
"symfony/framework-bundle": ">=3.4,<5",
1212
"webmozart/assert": "^1.2"
1313
},
1414
"require-dev": {

src/Resources/config/services.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ services:
55
- '~'
66
- '%kernel.environment%'
77
- '%kernel.debug%'
8+
public: true
9+
tags: ['controller.service_arguments']
810

911
openconext.monitor.controller.health:
1012
class: OpenConext\MonitorBundle\Controller\HealthController
1113
arguments:
1214
- '@openconext.monitor.health_check_chain'
15+
public: true
16+
tags: ['controller.service_arguments']
1317

1418
openconext.monitor.health_check_chain:
1519
class: OpenConext\MonitorBundle\HealthCheck\HealthCheckChain

src/Value/HealthReport.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ public function getStatusCode()
7777

7878
public function jsonSerialize()
7979
{
80-
$report['status'] = $this->status;
80+
$report = [
81+
'status' => $this->status
82+
];
8183
if (trim($this->message) !== '') {
8284
$report['message'] = $this->message;
8385
}

0 commit comments

Comments
 (0)