Conversation
There was a problem hiding this comment.
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
EntryPointson 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.