Skip to content

Add symfony debug bar support#35

Merged
koertho merged 8 commits intov2from
feature/debug_bar
Apr 21, 2026
Merged

Add symfony debug bar support#35
koertho merged 8 commits intov2from
feature/debug_bar

Conversation

@koertho
Copy link
Copy Markdown
Contributor

@koertho koertho commented Apr 20, 2026

No description provided.

@koertho koertho marked this pull request as ready for review April 20, 2026 15:04
@heimrich-hannot heimrich-hannot requested a review from Copilot April 20, 2026 15:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Symfony Web Profiler (debug bar) integration to expose the bundle’s resolved Encore entry points and registered extensions during a request.

Changes:

  • Persist the resolved EntryPoints on the current request (encore_entries) so the profiler can read them.
  • Add a Symfony data collector (EncoreCollector) and a Web Profiler panel/toolbar template to display entries/extensions.
  • Add a small README header icon (SVG) for branding.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/EventListener/InjectPageEntriesListener.php Adds request attribute injection of built EntryPoints during the layout event.
src/EventListener/Contao/ReplaceDynamicScriptTagsListener.php Adds request attribute injection of built EntryPoints during hook execution.
src/DataCollector/EncoreCollector.php Introduces a profiler data collector to expose entry points/extensions/version.
contao/templates/twig/data_collector/huh_encore.html.twig Adds the Web Profiler toolbar/panel UI for the collector.
config/services.php Registers the new data collector service.
tests/EventListener/Contao/ReplaceDynamicScriptTagsListenerTest.php Updates the test helper to pass the newly required RequestStack.
docs/img/waypoints.svg Adds an SVG icon used by the README and template.
README.md Adds the icon to the main heading.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread contao/templates/twig/data_collector/huh_encore.html.twig Outdated
Comment thread tests/EventListener/Contao/ReplaceDynamicScriptTagsListenerTest.php
Comment thread src/DataCollector/EncoreCollector.php
Comment thread src/DataCollector/EncoreCollector.php Outdated
Comment thread src/DataCollector/EncoreCollector.php Outdated
Comment thread contao/templates/twig/data_collector/huh_encore.html.twig Outdated
@koertho koertho merged commit 9616b96 into v2 Apr 21, 2026
12 checks passed
@koertho koertho deleted the feature/debug_bar branch April 21, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants