doctrine/phpcr-odm — pull request #176 by simensen (2012-09-13 02:46:10+00:00)
Title: Getting phpcr bin usable when installed via Composer

The phpcr bin is now installed when phpcr-odm is installed via Composer.

The entire process is a little less DRY as the root folder bootstrap.php has been removed in favor of having that code live both in bin/phpcr and in tests/bootstrap.php. This was done to remove the requirement that the cli-config.php files require bootstrap.php individually.

Without this change it would require anyone who wanted to use phpcr to also maintain a boilerplate bootstrap.php in their project root. Now the only requirement is that they maintain a configuration file.

I also mimicked the way that the bins are handled by doctrine/orm and moved the guts of the code to bin/phpcr.php and bin/phpcr simply includes it.

I'm hoping the tests work fine with this change but I wasn't able to really test them very well. I'm hoping that it is OK to let Travis do that work for me. My apologies if this ends up requiring a few rounds to get right. :)