Skip to content

Commit 13cb911

Browse files
committed
Use psr-11 container
1 parent 52c2169 commit 13cb911

7 files changed

+10
-11
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# phpdebugbar middleware [![Build Status](https://travis-ci.org/php-middleware/phpdebugbar.svg?branch=master)](https://travis-ci.org/php-middleware/phpdebugbar)
2-
PHP Debug bar middleware with PSR-7
2+
PHP Debug bar PSR-15 middleware with PSR-7
33

4-
This middleware provide framework-agnostic possibility to attach [PHP Debug bar](http://phpdebugbar.com/) to your response (html on non-html!).
4+
This middleware provide framework-agnostic possibility to attach [PHP Debug Bar](http://phpdebugbar.com/) to your response (html on non-html!).
55

66
## Installation
77

@@ -18,7 +18,7 @@ $middleware = new PhpMiddleware\PhpDebugBar\PhpDebugBarMiddleware($debugbarRende
1818

1919
// OR
2020

21-
$factory = PhpMiddleware\PhpDebugBar\PhpDebugBarMiddlewareFactory();
21+
$factory = new PhpMiddleware\PhpDebugBar\PhpDebugBarMiddlewareFactory();
2222
$middleware = $factory();
2323

2424
$app = new MiddlewareRunner();
@@ -61,7 +61,6 @@ $app->add($app->getContainer()->get('debugbar_middleware'));
6161
Put array with configuration into `config` service in your container:
6262

6363
```php
64-
<?php
6564
return [
6665
'phpmiddleware' => [
6766
'phpdebugbar' => [

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "php-middleware/php-debug-bar",
3-
"description": "PHP Debug bar middleware with PSR-7",
3+
"description": "PHP Debug Bar PSR-15 middleware with PSR-7",
44
"type": "library",
55
"keywords": [
66
"debug",
@@ -11,10 +11,10 @@
1111
],
1212
"require": {
1313
"php": ">=5.6",
14-
"container-interop/container-interop": "^1.1",
1514
"http-interop/http-middleware": "^0.4.1",
1615
"maximebf/debugbar": "^1.10",
1716
"php-middleware/double-pass-compatibility": "^1.0",
17+
"psr/container": "^1.0",
1818
"psr/http-message": "^1.0",
1919
"zendframework/zend-diactoros": "^1.1.3"
2020
},

src/ConfigCollectorFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace PhpMiddleware\PhpDebugBar;
44

55
use DebugBar\DataCollector\ConfigCollector;
6-
use Interop\Container\ContainerInterface;
6+
use Psr\Container\ContainerInterface;
77

88
final class ConfigCollectorFactory
99
{

src/JavascriptRendererFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use DebugBar\DebugBar;
66
use DebugBar\JavascriptRenderer;
7-
use Interop\Container\ContainerInterface;
7+
use Psr\Container\ContainerInterface;
88

99
final class JavascriptRendererFactory
1010
{

src/PhpDebugBarMiddlewareFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace PhpMiddleware\PhpDebugBar;
44

55
use DebugBar\JavascriptRenderer;
6-
use Interop\Container\ContainerInterface;
6+
use Psr\Container\ContainerInterface;
77

88
final class PhpDebugBarMiddlewareFactory
99
{

src/StandardDebugBarFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace PhpMiddleware\PhpDebugBar;
44

55
use DebugBar\StandardDebugBar;
6-
use Interop\Container\ContainerInterface;
6+
use Psr\Container\ContainerInterface;
77

88
final class StandardDebugBarFactory
99
{

test/ZendExpressiveTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace PhpMiddlewareTest\PhpDebugBar;
44

5-
use Interop\Container\ContainerInterface;
65
use PhpMiddleware\PhpDebugBar\ConfigProvider;
6+
use Psr\Container\ContainerInterface;
77
use Psr\Http\Message\ResponseInterface;
88
use Psr\Http\Message\ServerRequestInterface;
99
use Zend\Diactoros\Response\EmitterInterface;

0 commit comments

Comments
 (0)