1
0
Fork 0

Merge pull request #7212 from theofidry/bugfix/fix-null-io

Allow Composer to be used without running the application
pull/7225/head
Jordi Boggiano 2018-03-29 23:17:10 +02:00 committed by GitHub
commit 6bb1eaa6a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@
namespace Composer\Console;
use Composer\IO\NullIO;
use Composer\Util\Platform;
use Composer\Util\Silencer;
use Symfony\Component\Console\Application as BaseApplication;
@ -85,6 +86,8 @@ class Application extends BaseApplication
});
}
$this->io = new NullIO();
parent::__construct('Composer', Composer::VERSION);
}