Fix extension logs

Refactor utils.addCommand
This commit is contained in:
Shivam Mathur
2023-01-18 09:00:28 +05:30
parent 6db1a06425
commit bbc65d999a
10 changed files with 94 additions and 69 deletions

View File

@ -47,10 +47,5 @@ Function Add-Http() {
}
Add-Extension pecl_http >$null 2>&1
Repair-ICU
try {
php --ri "http" 2> $null | Out-Null
Add-Log $tick "http" "Installed and enabled"
} catch {
Add-Log $cross "http" "Could not install http on PHP $( $installed.FullVersion )"
}
Add-ExtensionLog http "Installed and enabled"
}