Skip to content

Commit

Permalink
Friends don't let friends use SHELL_VERBOSITY.
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Nov 2, 2022
1 parent 001bd79 commit d2173a5
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
],
"require": {
"php": ">=7.1.8",
"lesser-evil/shell-verbosity-is-evil": "~1.0",
"symfony/console": "~4.0",
"symfony/yaml": "~4.0",
"civicrm/composer-downloads-plugin": "~3.0",
Expand Down
38 changes: 37 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace Pogo;

use LesserEvil\ShellVerbosityIsEvil;
use Pogo\Command\DebugCommand;
use Pogo\Command\GetCommand;
use Pogo\Command\HelpCommand;
Expand All @@ -9,6 +10,8 @@
use Pogo\Command\RunCommand;
use Pogo\Command\UpdateCommand;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Application extends \Symfony\Component\Console\Application {

Expand Down Expand Up @@ -55,4 +58,10 @@ public function getAllCommands() {
return $this->getDefaultCommands();
}

protected function configureIO(InputInterface $input, OutputInterface $output) {
ShellVerbosityIsEvil::doWithoutEvil(function() use ($input, $output) {
parent::configureIO($input, $output);
});
}

}

0 comments on commit d2173a5

Please sign in to comment.