1
0
Fork 0

Add dev mode env var for scripts run (#9793)

Co-authored-by: Vitali Tsyrkin <vitalit@playtika.com>
pull/9803/head
vitman 2021-03-27 15:23:46 +03:00 committed by GitHub
parent bf73a20bc0
commit ecc8331312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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);
} }