You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Debug bar [PSR-15](https://www.php-fig.org/psr/psr-15/) middleware with [PSR-7](https://www.php-fig.org/psr/psr-7/). Also supports [PSR-11](https://www.php-fig.org/psr/psr-11/)
3
3
4
4
This middleware provide framework-agnostic possibility to attach [PHP Debug Bar](http://phpdebugbar.com/) to your response (html on non-html!).
5
5
@@ -30,17 +30,13 @@ You don't need to copy any static assets from phpdebugbar vendor!
30
30
31
31
### How to install on Zend Expressive?
32
32
33
-
Use [mtymek/expressive-config-manager](https://github.com/mtymek/expressive-config-manager) and add
34
-
`PhpMiddleware\PhpDebugBar\ConfigProvider` class name:
33
+
You need to register ConfigProvider and pipe provided middleware:
35
34
36
35
```php
37
-
$configManager = new \Zend\Expressive\ConfigManager\ConfigManager([
38
-
\PhpMiddleware\PhpDebugBar\ConfigProvider::class,
39
-
new \Zend\Expressive\ConfigManager\PhpFileProvider('config/autoload/{{,*.}global,{,*.}local}.php'),
40
-
]);
36
+
$app->pipe(PhpDebugBarMiddleware::class);
41
37
```
42
38
43
-
more [about config manager](https://zendframework.github.io/zend-expressive/cookbook/modular-layout/).
39
+
For more follow Zend Expressive [documentation](https://docs.zendframework.com/zend-expressive/v3/features/modular-applications/).
0 commit comments