Skip to content

Conversation

@kbond
Copy link
Member

@kbond kbond commented Apr 30, 2024

Q A
Bug fix? no
New feature? no
Issues n/a
License MIT

Successor to #1722.

@kbond kbond force-pushed the live/debug-command-and-profiler branch from 419e3f8 to 52ba3b3 Compare April 30, 2024 19:57
Comment on lines +72 to +73
if ($name = $input->getArgument('name')) {
if (!$component = $this->findComponentName($io, $name, $input->isInteractive())) {
Copy link
Member

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" ?

Comment on lines +260 to +263
match (true) {
null === $metadata->get('class') => '<comment>Anon</comment>',
$metadata->get('live') => '<info>Live</info>',
default => '',
Copy link
Member

Choose a reason for hiding this comment

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

Hmpf :)

if ($container->getParameter('kernel.debug')) {
$loader->load('debug.php');

$container->setParameter('ux.twig_component.anonymous_template_directory', $config['anonymous_template_directory']);
Copy link
Member

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

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants