composer: autoload cache functions

Fixes #9236
This commit is contained in:
Marc Cornellà 2020-09-29 12:06:21 +02:00
parent 4ec055b890
commit 2b59d052ef

View file

@ -51,6 +51,8 @@ alias cget='curl -s https://getcomposer.org/installer | php'
# Add Composer's global binaries to PATH, using Composer if available. # Add Composer's global binaries to PATH, using Composer if available.
if (( $+commands[composer] )); then if (( $+commands[composer] )); then
autoload -Uz _store_cache _retrieve_cache
_retrieve_cache composer _retrieve_cache composer
if [[ -z $__composer_bin_dir ]]; then if [[ -z $__composer_bin_dir ]]; then