Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nowo-tech/TwigInspectorBundle/llms.txt
Use this file to discover all available pages before exploring further.
How Twig bundle template overrides work
Symfony’s Twig integration checks your application’stemplates/bundles/ directory before loading a bundle’s own views. Any file you place there with the correct relative path takes precedence over the original.
The bundle name is derived from the PHP class name. For this bundle the class is NowoTwigInspectorBundle, so the override directory is:
src/Resources/views/ directory.
Overridable templates
Relative path (from Resources/views/) | Purpose |
|---|---|
Collector/template.html.twig | Web Profiler full panel — the detailed view opened from the profiler. |
Collector/toolbar_item.html.twig | Toolbar dropdown fragment — the icon, Enable checkbox, filter field, and shortcuts. |
Example directory structure
To override both templates, create the following files in your project:Clearing the cache
After adding or modifying override files, clear the Twig cache so Symfony picks up the new templates:You only need to clear the cache once after adding a new override file. Subsequent edits to the file are picked up automatically in the
dev environment because Twig’s auto-reload is enabled.