Skip to content

Commit

Permalink
Let Install-PhpExtension be a bit more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Oct 21, 2019
1 parent 3c654bf commit 7f02fbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PhpManager/public/Install-PhpExtension.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@
Write-Verbose ("Installing new extension '{0}' version {1}" -f $newExtension.Name, $newExtension.Version)
Install-PhpExtensionPrerequisite -PhpVersion $phpVersion -Extension $newExtension
$newExtensionFilename = [System.IO.Path]::Combine($phpVersion.ExtensionsPath, [System.IO.Path]::GetFileName($dllPath))
Write-Verbose "Moving ""$dllPath"" to ""$newExtensionFilename"""
Move-Item -Path $dllPath -Destination $newExtensionFilename
if (-Not($DontEnable)) {
Write-Verbose "Enabling extension ""$($newExtension.Name)"" for ""$($phpVersion.ExecutablePath)"""
Enable-PhpExtension -Extension $newExtension.Name -Path $phpVersion.ExecutablePath
}
}
Expand Down

0 comments on commit 7f02fbb

Please sign in to comment.