updated-packages

This commit is contained in:
RafficMohammed
2023-01-08 00:13:22 +05:30
parent 3ff7df7487
commit da241bacb6
12659 changed files with 563377 additions and 510538 deletions

View File

@@ -109,7 +109,7 @@ class Command extends SymfonyCommand
// the command we'll set the arguments and the options on this command.
$this->setDescription($this->description);
$this->setHidden($this->hidden);
$this->setHidden($this->isHidden());
if (! isset($this->signature)) {
$this->specifyParameters();
@@ -123,7 +123,7 @@ class Command extends SymfonyCommand
*/
protected function configureUsingFluentDefinition()
{
list($name, $arguments, $options) = Parser::parse($this->signature);
[$name, $arguments, $options] = Parser::parse($this->signature);
parent::__construct($this->name = $name);
@@ -162,8 +162,12 @@ class Command extends SymfonyCommand
*/
public function run(InputInterface $input, OutputInterface $output)
{
$this->output = $this->laravel->make(
OutputStyle::class, ['input' => $input, 'output' => $output]
);
return parent::run(
$this->input = $input, $this->output = new OutputStyle($input, $output)
$this->input = $input, $this->output
);
}
@@ -219,13 +223,31 @@ class Command extends SymfonyCommand
*/
protected function createInputFromArguments(array $arguments)
{
return tap(new ArrayInput($arguments), function ($input) {
return tap(new ArrayInput(array_merge($this->context(), $arguments)), function ($input) {
if ($input->hasParameterOption(['--no-interaction'], true)) {
$input->setInteractive(false);
}
});
}
/**
* Get all of the context passed to the command.
*
* @return array
*/
protected function context()
{
return collect($this->option())->only([
'ansi',
'no-ansi',
'no-interaction',
'quiet',
'verbose',
])->filter()->mapWithKeys(function ($value, $key) {
return ["--{$key}" => $value];
})->all();
}
/**
* Determine if the given argument is present.
*
@@ -277,7 +299,7 @@ class Command extends SymfonyCommand
* Get the value of a command option.
*
* @param string|null $key
* @return string|array|null
* @return string|array|bool|null
*/
public function option($key = null)
{
@@ -429,7 +451,7 @@ class Command extends SymfonyCommand
* Write a string as standard output.
*
* @param string $string
* @param string $style
* @param string|null $style
* @param int|string|null $verbosity
* @return void
*/
@@ -539,6 +561,24 @@ class Command extends SymfonyCommand
return $level;
}
/**
* {@inheritdoc}
*/
public function isHidden()
{
return $this->hidden;
}
/**
* {@inheritdoc}
*/
public function setHidden($hidden)
{
parent::setHidden($this->hidden = $hidden);
return $this;
}
/**
* Get the console command arguments.
*
@@ -562,7 +602,7 @@ class Command extends SymfonyCommand
/**
* Get the output implementation.
*
* @return \Symfony\Component\Console\Output\OutputInterface
* @return \Illuminate\Console\OutputStyle
*/
public function getOutput()
{