1
0
Fork 0

Add Factory::getComposerFile

pull/736/head
Jordi Boggiano 2012-05-26 14:43:44 +02:00
parent b33496c853
commit 7cd5f4c142
1 changed files with 6 additions and 1 deletions

View File

@ -62,6 +62,11 @@ class Factory
return $config;
}
public function getComposerFile()
{
return getenv('COMPOSER') ?: 'composer.json';
}
/**
* Creates a Composer instance
*
@ -73,7 +78,7 @@ class Factory
{
// load Composer configuration
if (null === $localConfig) {
$localConfig = getenv('COMPOSER') ?: 'composer.json';
$localConfig = $this->getComposerFile();
}
if (is_string($localConfig)) {