Skip to content

Commit 2a2b251

Browse files
committed
Update for Symfony 5
1 parent 1107052 commit 2a2b251

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Bridge/ContainerIntrospectionBundle/DataCollector/ContainerIntrospectionCollector.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function getName(): string
2626
return 'steevanb.container_collector';
2727
}
2828

29-
public function collect(Request $request, Response $response, \Exception $exception = null): void
29+
public function collect(Request $request, Response $response, \Throwable $exception = null): void
3030
{
3131
$this->introspection->introspect();
3232

@@ -87,7 +87,7 @@ public function getInstantiatedServices(): array
8787
{
8888
return $this->data['instantiatedServices'];
8989
}
90-
90+
9191
public function countInstantiatedServices(): int
9292
{
9393
return $this->data['countInstanciatedServices'];

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![version](https://img.shields.io/badge/version-1.1.1-green.svg)](https://github.com/steevanb/symfony-container-introspection/tree/1.1.1)
22
[![php](https://img.shields.io/badge/php-^7.1-blue.svg)](https://php.net)
3-
[![symfony](https://img.shields.io/badge/symfony/dependency--injection-^4.0-blue.svg)](https://symfony.com)
3+
[![symfony](https://img.shields.io/badge/symfony/dependency--injection-^5.0-blue.svg)](https://symfony.com)
44
![Lines](https://img.shields.io/badge/code%20lines-927-green.svg)
55
![Total Downloads](https://poser.pugx.org/steevanb/symfony-container-introspection/downloads)
66
[![Scrutinizer](https://scrutinizer-ci.com/g/steevanb/symfony-container-introspection/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/steevanb/symfony-container-introspection/)
@@ -22,11 +22,13 @@ With Symfony, a new profiler tab will appear:
2222

2323
If you want to use it with `symfony/dependency-injection ^3.4`, use [steevanb/symfony-container-introspection ^1.0](https://github.com/steevanb/symfony-container-introspection/tree/1.0.x).
2424

25+
If you want to use it with `symfony/dependency-injection ^4.0`, use [steevanb/symfony-container-introspection ^1.1](https://github.com/steevanb/symfony-container-introspection/tree/1.1.x).
26+
2527
Installation
2628
============
2729

2830
```bash
29-
composer require --dev steevanb/symfony-container-introspection ^1.1.1
31+
composer require --dev steevanb/symfony-container-introspection ^2.0
3032
```
3133

3234
If you use Symfony (and not just `symfony/dependency-injection`), you can add `ContainerIntrospectionBundle` to your Kernel:

changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### [2.0.0](../../compare/1.1.1...2.0.0) - 2020-10-26
2+
3+
- Modifications for Symfony 5
4+
15
### [1.1.1](../../compare/1.1.0...1.1.1) - 2018-09-10
26

37
- Fix Symfony4 bundle DataCollector template name when not using LiipThemeBundle

composer.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
},
99
"require": {
1010
"php": "^7.1",
11-
"symfony/dependency-injection": "^4.0"
12-
},
13-
"repositories": [
14-
{
15-
"type": "vcs",
16-
"url": "https://github.com/steevanb/symfony-container-introspection.git"
17-
}
18-
]
11+
"symfony/dependency-injection": "^5.0"
12+
}
1913
}

0 commit comments

Comments
 (0)