Skip to content

Commit 7f3101b

Browse files
committed
add alias for call silent
1 parent 4e52a60 commit 7f3101b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/Illuminate/Console/Concerns/CallsCommands.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function call($command, array $arguments = [])
2929
}
3030

3131
/**
32-
* Call another console command silently.
32+
* Call another console command without output.
3333
*
3434
* @param \Symfony\Component\Console\Command\Command|string $command
3535
* @param array $arguments
@@ -40,6 +40,18 @@ public function callSilent($command, array $arguments = [])
4040
return $this->runCommand($command, $arguments, new NullOutput);
4141
}
4242

43+
/**
44+
* Call another console command without output.
45+
*
46+
* @param \Symfony\Component\Console\Command\Command|string $command
47+
* @param array $arguments
48+
* @return int
49+
*/
50+
public function callWithoutOutput($command, array $arguments = [])
51+
{
52+
return $this->callSilent($command, $arguments);
53+
}
54+
4355
/**
4456
* Run the given the console command.
4557
*

0 commit comments

Comments
 (0)