1
0
Fork 0

Remove InputInterface passing from previous commits

- no longer necessary with IOInterface update
pull/2745/head
Pádraic Brady 2014-03-02 17:43:31 +00:00
parent 470fb58273
commit 49414a9790
3 changed files with 7 additions and 7 deletions

View File

@ -43,13 +43,13 @@ abstract class Command extends BaseCommand
* @throws \RuntimeException
* @return Composer
*/
public function getComposer($required = true, $disablePlugins = false, InputInterface $input = null)
public function getComposer($required = true, $disablePlugins = false)
{
if (null === $this->composer) {
$application = $this->getApplication();
if ($application instanceof Application) {
/* @var $application Application */
$this->composer = $application->getComposer($required, $disablePlugins, $input);
$this->composer = $application->getComposer($required, $disablePlugins);
} elseif ($required) {
throw new \RuntimeException(
'Could not create a Composer\Composer instance, you must inject '.

View File

@ -169,11 +169,11 @@ class Application extends BaseApplication
* @throws JsonValidationException
* @return \Composer\Composer
*/
public function getComposer($required = true, $disablePlugins = false, InputInterface $input = null)
public function getComposer($required = true, $disablePlugins = false)
{
if (null === $this->composer) {
try {
$this->composer = Factory::create($this->io, null, $disablePlugins, $input);
$this->composer = Factory::create($this->io, null, $disablePlugins);
} catch (\InvalidArgumentException $e) {
if ($required) {
$this->io->write($e->getMessage());

View File

@ -185,7 +185,7 @@ class Factory
* @throws \UnexpectedValueException
* @return Composer
*/
public function createComposer(IOInterface $io, $localConfig = null, $disablePlugins = false, InputInterface $input = null)
public function createComposer(IOInterface $io, $localConfig = null, $disablePlugins = false)
{
// load Composer configuration
if (null === $localConfig) {
@ -444,11 +444,11 @@ class Factory
* @param bool $disablePlugins Whether plugins should not be loaded
* @return Composer
*/
public static function create(IOInterface $io, $config = null, $disablePlugins = false, InputInterface $input = null)
public static function create(IOInterface $io, $config = null, $disablePlugins = false)
{
$factory = new static();
return $factory->createComposer($io, $config, $disablePlugins, $input);
return $factory->createComposer($io, $config, $disablePlugins);
}
/**