mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Enable extensions required for installing composer packages
This commit is contained in:
parent
8d4007321f
commit
57662657e0
@ -199,6 +199,7 @@ Function Add-Composertool() {
|
|||||||
Add-Log $cross $tool "Skipped"
|
Add-Log $cross $tool "Skipped"
|
||||||
Return
|
Return
|
||||||
}
|
}
|
||||||
|
Enable-PhpExtension -Extension mbstring, openssl -Path $php_dir
|
||||||
$log = Add-ComposertoolHelper -tool $tool -release $release -prefix $prefix -scope $scope
|
$log = Add-ComposertoolHelper -tool $tool -release $release -prefix $prefix -scope $scope
|
||||||
if(Test-Path $composer_bin\composer) {
|
if(Test-Path $composer_bin\composer) {
|
||||||
Copy-Item -Path "$bin_dir\composer" -Destination "$composer_bin\composer" -Force
|
Copy-Item -Path "$bin_dir\composer" -Destination "$composer_bin\composer" -Force
|
||||||
|
@ -117,6 +117,8 @@ add_composertool_helper() {
|
|||||||
release=$2
|
release=$2
|
||||||
prefix=$3
|
prefix=$3
|
||||||
scope=$4
|
scope=$4
|
||||||
|
enable_extension mbstring extension >/dev/null 2>&1
|
||||||
|
enable_extension openssl extension >/dev/null 2>&1
|
||||||
if [ "$scope" = "global" ]; then
|
if [ "$scope" = "global" ]; then
|
||||||
sudo rm -f "$composer_lock" >/dev/null 2>&1 || true
|
sudo rm -f "$composer_lock" >/dev/null 2>&1 || true
|
||||||
composer global require "$prefix$release" >/dev/null 2>&1
|
composer global require "$prefix$release" >/dev/null 2>&1
|
||||||
|
Loading…
Reference in New Issue
Block a user