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
{{ message }}
Repository navigation
Commit b27b768
Browse filesBrowse the repository at this point in the historyBrowse files
Both hosts derive the IDs from the objects themselves. `CollectorInterface` is the only collector contract the
146
-
debugger has, so the collector is registered as it is, and only the panel is adapted to the host's own panel type.
147
-
No catalog entry, icon enum, storage dispatch entry, or change to an official package is needed. Inject the same `$collector` into the application service that
148
-
calls `record()`.
153
+
The container resolves `CacheCollector::class`, so the same instance serves the application service and the capture.
154
+
155
+
Entry options:
156
+
157
+
-`class`: the collector or panel class, required unless the value is a class string or, in Yii2, an instance.
158
+
-`title`: the panel title, defaulting to the panel's `TITLE` constant.
159
+
-`icon`: a Debug Core icon key, defaulting to the panel's `ICON` constant.
160
+
-`enabled`: set to `false` to skip an entry without installing its package.
161
+
-`position`: order among extensions; unpositioned extensions follow alphabetically.
162
+
163
+
`CollectorInterface` is the only collector contract the debugger has, so the collector is registered as it is, and
164
+
only the panel is adapted to the host's own panel type. No catalog entry, icon enum, storage dispatch entry, or
165
+
change to an official package is needed.
149
166
150
167
A runnable version of this example, capturing through PSR-3 instead of a direct call, lives in
151
-
[tests/Support](tests/Support); `python3 tools/check-consumer.py` installs it as an independent Composer package and
152
-
replays a stored capture with no debugger host present.
0 commit comments