-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] [Bug] Fixes new InputStyle bug #16920 #16922
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
Changes from 5 commits
7137e61
84a1d41
508ad46
5c53861
8c7ade0
31175c5
00af297
f1faab7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,7 +115,7 @@ protected function execute(InputInterface $input, OutputInterface $output) | |
$options = array('tag' => $tag, 'show_private' => $input->getOption('show-private')); | ||
} elseif ($name = $input->getArgument('name')) { | ||
$object = $this->getContainerBuilder(); | ||
$name = $this->findProperServiceName($input, $output, $object, $name); | ||
$name = $this->findProperServiceName($input, $io, $object, $name); | ||
$options = array('id' => $name); | ||
} else { | ||
$object = $this->getContainerBuilder(); | ||
|
@@ -125,8 +125,8 @@ protected function execute(InputInterface $input, OutputInterface $output) | |
$helper = new DescriptorHelper(); | ||
$options['format'] = $input->getOption('format'); | ||
$options['raw_text'] = $input->getOption('raw'); | ||
$options['output'] = $output; | ||
$helper->describe($output, $object, $options); | ||
$options['output'] = $io; | ||
$helper->describe($io, $object, $options); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably be reverted, the helper need the Output instance. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
|
||
if (!$input->getArgument('name') && $input->isInteractive()) { | ||
$io->comment('To search for a specific service, re-run this command with a search term. (e.g. <comment>debug:container log</comment>)'); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,15 +118,15 @@ protected function execute(InputInterface $input, OutputInterface $output) | |
$io->success(sprintf('Server running on http://%s', $address)); | ||
$io->comment('Quit the server with CONTROL-C.'); | ||
|
||
if (null === $builder = $this->createPhpProcessBuilder($output, $address, $input->getOption('router'), $env)) { | ||
if (null === $builder = $this->createPhpProcessBuilder($io, $address, $input->getOption('router'), $env)) { | ||
return 1; | ||
} | ||
|
||
$builder->setWorkingDirectory($documentRoot); | ||
$builder->setTimeout(null); | ||
$process = $builder->getProcess(); | ||
|
||
if (OutputInterface::VERBOSITY_VERBOSE > $output->getVerbosity()) { | ||
if (OutputInterface::VERBOSITY_VERBOSE > $io->getVerbosity()) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one should probably be left as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are probably right. Using the original object will give better performance than the wrapped one. |
||
$process->disableOutput(); | ||
} | ||
|
||
|
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.
No need to add yourself to this file because its contents are automatically generated. And you'll appear here too: http://symfony.com/contributors/code
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.
😎deleted it