mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
Improve Command
(#5879)
This commit is contained in:
parent
21d63d5e01
commit
6c4cb30f5d
@ -31,6 +31,7 @@
|
||||
- [#5586](https://github.com/hyperf/hyperf/pull/5586) Support grpc streaming for nacos naming service.
|
||||
- [#5866](https://github.com/hyperf/hyperf/pull/5866) Use `StrCache` instead of `Str` in special cases.
|
||||
- [#5872](https://github.com/hyperf/hyperf/pull/5872) Avoid to execute the refresh callback more than once when calling `refresh()` multi times.
|
||||
- [#5879](https://github.com/hyperf/hyperf/pull/5879) [#5878](https://github.com/hyperf/hyperf/pull/5878) Improve `Command`.
|
||||
|
||||
## Removed
|
||||
|
||||
|
@ -20,7 +20,6 @@ use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Question\ChoiceQuestion;
|
||||
use Symfony\Component\Console\Question\Question;
|
||||
use Symfony\Component\Console\Style\OutputStyle;
|
||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||
|
||||
trait InteractsWithIO
|
||||
@ -28,7 +27,7 @@ trait InteractsWithIO
|
||||
protected ?InputInterface $input = null;
|
||||
|
||||
/**
|
||||
* @var null|OutputInterface|SymfonyStyle
|
||||
* @var null|SymfonyStyle
|
||||
*/
|
||||
protected ?OutputInterface $output = null;
|
||||
|
||||
@ -380,8 +379,9 @@ trait InteractsWithIO
|
||||
|
||||
/**
|
||||
* Set the output interface implementation.
|
||||
* @param SymfonyStyle $output
|
||||
*/
|
||||
public function setOutput(OutputStyle $output)
|
||||
public function setOutput($output)
|
||||
{
|
||||
$this->output = $output;
|
||||
}
|
||||
@ -389,7 +389,7 @@ trait InteractsWithIO
|
||||
/**
|
||||
* Get the output implementation.
|
||||
*
|
||||
* @return OutputStyle
|
||||
* @return null|SymfonyStyle
|
||||
*/
|
||||
public function getOutput()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user