mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 18:18:57 +02:00
Added support for environment specific composer settings
This commit is contained in:
@@ -43,10 +43,9 @@ class DumpAutoloadTask extends AbstractTask
|
||||
|
||||
protected function getOptions()
|
||||
{
|
||||
$userOptions = $this->runtime->getConfigOption('composer', []);
|
||||
$options = array_merge(
|
||||
['path' => 'composer', 'flags' => '--optimize'],
|
||||
(is_array($userOptions) ? $userOptions : []),
|
||||
$this->runtime->getMergedEnvAndConfigOption('composer', [], []),
|
||||
$this->options
|
||||
);
|
||||
|
||||
|
||||
@@ -43,10 +43,9 @@ class InstallTask extends AbstractTask
|
||||
|
||||
protected function getOptions()
|
||||
{
|
||||
$userOptions = $this->runtime->getConfigOption('composer', []);
|
||||
$options = array_merge(
|
||||
['path' => 'composer', 'flags' => '--optimize-autoloader'],
|
||||
(is_array($userOptions) ? $userOptions : []),
|
||||
$this->runtime->getMergedEnvAndConfigOption('composer', [], []),
|
||||
$this->options
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user