Add fileinfo extension with phpdoc

Add aliases for phpdoc
This commit is contained in:
Shivam Mathur 2021-09-20 05:26:43 +05:30
parent 253459691c
commit 7b145b5fae
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,9 @@ Function Add-ToolsHelper() {
Add-Extension ast >$null 2>&1 Add-Extension ast >$null 2>&1
} elseif($tool -eq "phive") { } elseif($tool -eq "phive") {
Add-Extension xml >$null 2>&1 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") { } elseif($tool -eq "symfony-cli") {
Add-ToProfile $current_profile "symfony" "New-Alias symfony $bin_dir\symfony-cli.exe" 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" Add-ToProfile $current_profile "symfony_cli" "New-Alias symfony-cli $bin_dir\symfony-cli.exe"

View File

@ -14,6 +14,9 @@ add_tools_helper() {
add_extension curl extension >/dev/null 2>&1 add_extension curl extension >/dev/null 2>&1
add_extension mbstring extension >/dev/null 2>&1 add_extension mbstring extension >/dev/null 2>&1
add_extension xml 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 elif [[ "$tool" =~ (symfony|vapor|wp)-cli ]]; then
sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/${tool%-*} sudo ln -s "${tool_path:?}" "${tool_path_dir:?}"/${tool%-*}
fi fi