Add Factory::getComposerFile
parent
b33496c853
commit
7cd5f4c142
|
@ -62,6 +62,11 @@ class Factory
|
||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getComposerFile()
|
||||||
|
{
|
||||||
|
return getenv('COMPOSER') ?: 'composer.json';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a Composer instance
|
* Creates a Composer instance
|
||||||
*
|
*
|
||||||
|
@ -73,7 +78,7 @@ class Factory
|
||||||
{
|
{
|
||||||
// load Composer configuration
|
// load Composer configuration
|
||||||
if (null === $localConfig) {
|
if (null === $localConfig) {
|
||||||
$localConfig = getenv('COMPOSER') ?: 'composer.json';
|
$localConfig = $this->getComposerFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_string($localConfig)) {
|
if (is_string($localConfig)) {
|
||||||
|
|
Loading…
Reference in New Issue