Skip to content

Commit

Permalink
Update for Symfony 5
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb committed Oct 26, 2020
1 parent 1107052 commit 2a2b251
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function getName(): string
return 'steevanb.container_collector';
}

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

Expand Down Expand Up @@ -87,7 +87,7 @@ public function getInstantiatedServices(): array
{
return $this->data['instantiatedServices'];
}

public function countInstantiatedServices(): int
{
return $this->data['countInstanciatedServices'];
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![version](https://img.shields.io/badge/version-1.1.1-green.svg)](https://github.com/steevanb/symfony-container-introspection/tree/1.1.1)
[![php](https://img.shields.io/badge/php-^7.1-blue.svg)](https://php.net)
[![symfony](https://img.shields.io/badge/symfony/dependency--injection-^4.0-blue.svg)](https://symfony.com)
[![symfony](https://img.shields.io/badge/symfony/dependency--injection-^5.0-blue.svg)](https://symfony.com)
![Lines](https://img.shields.io/badge/code%20lines-927-green.svg)
![Total Downloads](https://poser.pugx.org/steevanb/symfony-container-introspection/downloads)
[![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/)
Expand All @@ -22,11 +22,13 @@ With Symfony, a new profiler tab will appear:

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).

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).

Installation
============

```bash
composer require --dev steevanb/symfony-container-introspection ^1.1.1
composer require --dev steevanb/symfony-container-introspection ^2.0
```

If you use Symfony (and not just `symfony/dependency-injection`), you can add `ContainerIntrospectionBundle` to your Kernel:
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### [2.0.0](../../compare/1.1.1...2.0.0) - 2020-10-26

- Modifications for Symfony 5

### [1.1.1](../../compare/1.1.0...1.1.1) - 2018-09-10

- Fix Symfony4 bundle DataCollector template name when not using LiipThemeBundle
Expand Down
10 changes: 2 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
},
"require": {
"php": "^7.1",
"symfony/dependency-injection": "^4.0"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/steevanb/symfony-container-introspection.git"
}
]
"symfony/dependency-injection": "^5.0"
}
}

0 comments on commit 2a2b251

Please sign in to comment.