Skip to content

[TwigHooks] Improve sylius:debug:twig-hooks command#357

Merged
loic425 merged 1 commit intoSylius:mainfrom
camilleislasse:main
Mar 25, 2026
Merged

[TwigHooks] Improve sylius:debug:twig-hooks command#357
loic425 merged 1 commit intoSylius:mainfrom
camilleislasse:main

Conversation

@camilleislasse
Copy link
Contributor

Summary

Improve sylius:debug:twig-hooks command with tree view, multi-hooks support and extended config display.

Features

  • --tree option to display the full hooks hierarchy as a tree
  • Multi-hooks support: pass multiple hook names to see the merged result (as resolved at runtime)
  • --config now displays context, configuration and props
  • Tree display aligned with the debug toolbar format

Usage

# Display full hooks hierarchy as a tree
bin/console sylius:debug:twig-hooks sylius_admin.common.create --tree

# Show context, configuration and props
bin/console sylius:debug:twig-hooks sylius_admin.common.create --config

# Display merged result of multiple hooks
bin/console sylius:debug:twig-hooks sylius_admin.dashboard.index.content sylius_admin.common.index.content

# Display merged tree of multiple hooks
bin/console sylius:debug:twig-hooks sylius_admin.dashboard.index.content sylius_admin.common.index.content --tree
Capture d’écran 2026-03-24 à 20 10 36

@loic425 loic425 merged commit eca453f into Sylius:main Mar 25, 2026
6 checks passed
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