From 7f3101bf6e8a0f048a243a55be7fc79eb359b609 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 17 Nov 2020 12:46:23 -0600 Subject: [PATCH] add alias for call silent --- src/Illuminate/Console/Concerns/CallsCommands.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Console/Concerns/CallsCommands.php b/src/Illuminate/Console/Concerns/CallsCommands.php index e060c5562606..11a69060c742 100644 --- a/src/Illuminate/Console/Concerns/CallsCommands.php +++ b/src/Illuminate/Console/Concerns/CallsCommands.php @@ -29,7 +29,7 @@ public function call($command, array $arguments = []) } /** - * Call another console command silently. + * Call another console command without output. * * @param \Symfony\Component\Console\Command\Command|string $command * @param array $arguments @@ -40,6 +40,18 @@ public function callSilent($command, array $arguments = []) return $this->runCommand($command, $arguments, new NullOutput); } + /** + * Call another console command without output. + * + * @param \Symfony\Component\Console\Command\Command|string $command + * @param array $arguments + * @return int + */ + public function callWithoutOutput($command, array $arguments = []) + { + return $this->callSilent($command, $arguments); + } + /** * Run the given the console command. *