Skip to content

Commit

Permalink
add alias for call silent
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 17, 2020
1 parent 4e52a60 commit 7f3101b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Illuminate/Console/Concerns/CallsCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
*
Expand Down

0 comments on commit 7f3101b

Please sign in to comment.