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

Allow Composer to be used without running the application
main
Jordi Boggiano 6 years ago committed by GitHub
commit 6bb1eaa6a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}

Loading…
Cancel
Save