mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Add fileinfo extension with phpdoc
Add aliases for phpdoc
This commit is contained in:
parent
253459691c
commit
7b145b5fae
@ -15,6 +15,9 @@ Function Add-ToolsHelper() {
|
||||
Add-Extension ast >$null 2>&1
|
||||
} elseif($tool -eq "phive") {
|
||||
Add-Extension xml >$null 2>&1
|
||||
} elseif($tool -eq "phpDocumentor") {
|
||||
Add-Extension fileinfo >$null 2>&1
|
||||
Copy-Item $bin_dir\phpDocumentor.bat -Destination $bin_dir\phpdoc.bat
|
||||
} elseif($tool -eq "symfony-cli") {
|
||||
Add-ToProfile $current_profile "symfony" "New-Alias symfony $bin_dir\symfony-cli.exe"
|
||||
Add-ToProfile $current_profile "symfony_cli" "New-Alias symfony-cli $bin_dir\symfony-cli.exe"
|
||||
|
@ -14,6 +14,9 @@ add_tools_helper() {
|
||||
add_extension curl extension >/dev/null 2>&1
|
||||
add_extension mbstring extension >/dev/null 2>&1
|
||||
add_extension xml extension >/dev/null 2>&1
|
||||
elif [ "$tool" = "phpDocumentor" ]; then
|
||||
add_extension fileinfo extension >/dev/null 2>&1
|
||||
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/phpdoc
|
||||
elif [[ "$tool" =~ (symfony|vapor|wp)-cli ]]; then
|
||||
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/${tool%-*}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user