|
|
@ -62,6 +62,12 @@ class Application extends BaseApplication
|
|
|
|
private $hasPluginCommands = false;
|
|
|
|
private $hasPluginCommands = false;
|
|
|
|
private $disablePluginsByDefault = false;
|
|
|
|
private $disablePluginsByDefault = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @var string Store the working directory so Composer
|
|
|
|
|
|
|
|
* can switch back to it if there are issues
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private $workingDirectory = '';
|
|
|
|
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
static $shutdownRegistered = false;
|
|
|
|
static $shutdownRegistered = false;
|
|
|
@ -91,6 +97,8 @@ class Application extends BaseApplication
|
|
|
|
|
|
|
|
|
|
|
|
$this->io = new NullIO();
|
|
|
|
$this->io = new NullIO();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->workingDirectory = getcwd();
|
|
|
|
|
|
|
|
|
|
|
|
parent::__construct('Composer', Composer::getVersion());
|
|
|
|
parent::__construct('Composer', Composer::getVersion());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -491,4 +499,14 @@ class Application extends BaseApplication
|
|
|
|
|
|
|
|
|
|
|
|
return $commands;
|
|
|
|
return $commands;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Get the working directoy
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return string
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function getWorkingDirectory()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return $this->workingDirectory;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|