New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TwigComponent] refactor debug:twig-component
/TwigComponentDataCollector
#1812
base: 2.x
Are you sure you want to change the base?
Conversation
419e3f8
to
52ba3b3
Compare
if ($name = $input->getArgument('name')) { | ||
if (!$component = $this->findComponentName($io, $name, $input->isInteractive())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe even put this in "interact" ?
match (true) { | ||
null === $metadata->get('class') => '<comment>Anon</comment>', | ||
$metadata->get('live') => '<info>Live</info>', | ||
default => '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmpf :)
$container->setAlias('console.command.stimulus_component_debug', 'ux.twig_component.command.debug') | ||
->setDeprecated('symfony/ux-twig-component', '2.13', '%alias_id%'); | ||
|
||
if ($container->getParameter('kernel.debug')) { | ||
$loader->load('debug.php'); | ||
|
||
$container->setParameter('ux.twig_component.anonymous_template_directory', $config['anonymous_template_directory']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure to understand why we need this ?
i'd rather not set container parameters (even in debug only) if we can avoid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure to understand why we need this ?
This was a relic from the previous PR. I think I can remove.
Successor to #1722.
debug:twig-command
to allow [LiveComponent] Add Events listening infos in Profiler and DebugCommand #1720TwigComponentDataCollector
to allow [LiveComponent] Add Events listening infos in Profiler and DebugCommand #1720