Merge pull request #7212 from theofidry/bugfix/fix-null-io
Allow Composer to be used without running the applicationpull/7225/head
commit
6bb1eaa6a8
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
namespace Composer\Console;
|
namespace Composer\Console;
|
||||||
|
|
||||||
|
use Composer\IO\NullIO;
|
||||||
use Composer\Util\Platform;
|
use Composer\Util\Platform;
|
||||||
use Composer\Util\Silencer;
|
use Composer\Util\Silencer;
|
||||||
use Symfony\Component\Console\Application as BaseApplication;
|
use Symfony\Component\Console\Application as BaseApplication;
|
||||||
|
@ -85,6 +86,8 @@ class Application extends BaseApplication
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->io = new NullIO();
|
||||||
|
|
||||||
parent::__construct('Composer', Composer::VERSION);
|
parent::__construct('Composer', Composer::VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue