zend-patterns / ZendServerSDK

Pure ZF2 CLI for zpk creation and webapi client.
BSD 3-Clause "New" or "Revised" License
22 stars 17 forks source link

Supporting using zenddevops/client as a vendor. #15

Closed brobie closed 10 years ago

brobie commented 10 years ago

When installing zenddevops/client as a vendor into another project, it adds the zs-client.php inside of vendor/bin. When you try to run the command...

php vendor/bin/zs-client.php installApp --zpk="/tmp/app-1.0.0.zpk"

...it could not find vendor/autoload.php.

This commit adds the cwd to the include path before it is changed inside of zs-client.php.

slaff commented 10 years ago

I will run some tests and if it does not break the work of the php and compiled files I will merge the change.