Skip to content

Commit 43242c5

Browse files
committed
Add readme
1 parent 1e9dc62 commit 43242c5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ $app->run($request, $response);
2828

2929
You don't need to copy any static assets from phpdebugbar vendor!
3030

31+
### How to force disable or enable PHP Debug Bar?
32+
33+
Sometimes you want to have control when show or not PHP Debug Bar:
34+
* custom content negotiation,
35+
* allow to make redirects.
36+
37+
We allow you to disable attaching phpdebugbar using `X-Debug-Bar: false` header or cookie.
38+
To force enable just send request with `X-Debug-Bar` header or cookie with `true` value.
39+
3140
### How to install on Zend Expressive?
3241

3342
You need to register ConfigProvider and pipe provided middleware:

0 commit comments

Comments
 (0)