Jira issue originally created by user mjh_ca:
The current CLI tool doctrine.php makes assumptions about lib/vendor paths. Consider refactoring to allow cli-config.php to contain any include path/autoloader setup and remove hard coded paths from doctrine.php
Comment created by @beberlei:
Denied! That is really the PEAR binary code, nothing used in another context.
I refactored the large bunch of code to Doctrine\ORM\Tools\Console\ConsoleRunner::main() and ::addCommands().
Issue was closed with resolution "Fixed"