We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0f0e13 commit 95a1c4dCopy full SHA for 95a1c4d
README.md
@@ -56,6 +56,27 @@ and add middleware from container to app:
56
$app->add($app->getContainer()->get('debugbar_middleware'));
57
```
58
59
+### How to configure using existing factories?
60
+
61
+Put array with configuration into `config` service in your container:
62
63
+```php
64
+<?php
65
+return [
66
+ 'phpmiddleware' => [
67
+ 'phpdebugbar' => [
68
+ 'javascript_renderer' => [
69
+ 'base_url' => '/phpdebugbar',
70
+ ],
71
+ 'collectors' => [
72
+ DebugBar\DataCollector\ConfigCollector::class, // Service names of collectors
73
74
+ 'storage' => null, // Service name of storage
75
76
77
+];
78
+```
79
80
## It's just works with any modern php framework!
81
82
Middleware tested on:
0 commit comments