Add dev mode env var for scripts run (#9793)
Co-authored-by: Vitali Tsyrkin <vitalit@playtika.com>pull/9803/head
parent
bf73a20bc0
commit
ecc8331312
|
@ -103,6 +103,9 @@ EOT
|
||||||
ProcessExecutor::setTimeout((int) $timeout);
|
ProcessExecutor::setTimeout((int) $timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_SERVER['COMPOSER_DEV_MODE'] = $devMode ? '1' : '0';
|
||||||
|
putenv('COMPOSER_DEV_MODE='.$_SERVER['COMPOSER_DEV_MODE']);
|
||||||
|
|
||||||
return $composer->getEventDispatcher()->dispatchScript($script, $devMode, $args);
|
return $composer->getEventDispatcher()->dispatchScript($script, $devMode, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue