The path to the wp-cli/wp-cli needs to be detected reliably to base the location of the AutoloadSplitter logic class on. Otherwise, packages that don't have the location to this class set in their composer.json file will receive the current default that only works from within the wp-cli/wp-cli root package, but not from within a command package that pulls in wp-cli/wp-cli as a dependency.
The path to the
wp-cli/wp-cli
needs to be detected reliably to base the location of theAutoloadSplitter
logic class on. Otherwise, packages that don't have the location to this class set in theircomposer.json
file will receive the current default that only works from within thewp-cli/wp-cli
root package, but not from within a command package that pulls inwp-cli/wp-cli
as a dependency.Related issue: https://github.com/wp-cli/doctor-command/pull/110#issuecomment-298749333