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

Autodetect Zend Server version #48

Closed weierophinney closed 9 years ago

weierophinney commented 9 years ago

Currently, when creating an SDK target, you have the option of specifying the Zend Server version via the --version option. If you fail to do so, it defaults to "6.3".

This is not useful, particularly for the upcoming version 8, where using that version results in the SDK being unusable when that target is specified.

The better path would be to try and connect to the Zend Server API and determine the version from the API -- and to potentially prompt the user for the version if the API cannot provide that information (even better: provide information in that prompt to guide the user to discover the version from the UI!).