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 fa80073 commit e2b54cb
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 6 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"symfony/event-dispatcher": "~4.4",
"symfony/cache": "~4.4",
"civicrm/composer-downloads-plugin": "~3.0",
"lesser-evil/shell-verbosity-is-evil": "~1.0",
"psr/simple-cache": "^1.0"
},
"bin": ["bin/loco"],
Expand Down
48 changes: 42 additions & 6 deletions composer.lock

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

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

use LesserEvil\ShellVerbosityIsEvil;
use Loco\Command\CleanCommand;
use Loco\Command\EnvCommand;
use Loco\Command\ExportCommand;
Expand Down Expand Up @@ -32,6 +33,12 @@ public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN') {
// $this->setDefaultCommand('run');
}

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

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit e2b54cb

Please sign in to comment.