8000 [Console][Process] Add `$verbosity` argument to `mustRun` helper method · symfony/symfony@5eb76bf · GitHub
[go: up one dir, main page]

Skip to content

Commit 5eb76bf

Browse files
willrowenicolas-grekas
authored andcommitted
[Console][Process] Add $verbosity argument to mustRun helper method
1 parent c3bb47a commit 5eb76bf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Symfony/Component/Console/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
---
66

77
* Add support for `FORCE_COLOR` environment variable
8+
* Add `verbosity` argument to `mustRun` process helper method
89

910
7.1
1011
---

src/Symfony/Component/Console/Helper/ProcessHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public function run(OutputInterface $output, array|Process $cmd, ?string $error
9494
*
9595
* @see run()
9696
*/
97-
public function mustRun(OutputInterface $output, array|Process $cmd, ?string $error = null, ?callable $callback = null): Process
97+
public function mustRun(OutputInterface $output, array|Process $cmd, ?string $error = null, ?callable $callback = null, int $verbosity = OutputInterface::VERBOSITY_VERY_VERBOSE): Process
9898
{
99-
$process = $this->run($output, $cmd, $error, $callback);
99+
$process = $this->run($output, $cmd, $error, $callback, $verbosity);
100100

101101
if (!$process->isSuccessful()) {
102102
throw new ProcessFailedException($process);

0 commit comments

Comments
 (0)
0