KnpLabs/symfony-with-composer — pull request #5 by ddeboer (2012-01-29 13:42:36+00:00)
Title: Change to working directory before running composer

For deployment purposes (e.g. DeployHQ SSH commands), it might be useful to be able to run `php bin/vendors` from outside the project's working directory. However, `php composer.phar update` will only look for a `composer.json` file in the current directory. So to be able to execute the vendors script from outside the project directory, we need to change to that directory first.