Skip to content

fix(bin): correct autoloader resolution in horde-redis-tester#4

Open
ralflang wants to merge 1 commit into
FRAMEWORK_6_0from
fix/redis-tester-autoloader
Open

fix(bin): correct autoloader resolution in horde-redis-tester#4
ralflang wants to merge 1 commit into
FRAMEWORK_6_0from
fix/redis-tester-autoloader

Conversation

@ralflang
Copy link
Copy Markdown
Member

Summary

  • Uses $_composer_autoload_path (set by Composer's bin proxy) when available
  • Falls back to git-checkout path first (../vendor/autoload.php), then production path (../../../autoload.php)
  • Fixes "Cannot find autoloader" error when running via vendor/bin/horde-redis-tester in a deployed installation

Reported by Nels Lindquist on the mailing list.

Use $_composer_autoload_path when available (set by Composer's bin
proxy). Fall back to git-checkout path first, then production path
(vendor/horde/hashtable/bin/../../../autoload.php).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant