In order to allow separating the skeleton version from the UI version, we need to be able to report the former to the latter.
zfcampus/zf-apigility-skeleton#130 adds a new constant, Apigility\VERSION, which reports the current skeleton version. zfcampus/zf-apigility-admin-ui updates the UI's "About" tab to:
use @dev by default for the version
attempt to query the apigility-version API exposed by the admin
if not available, keeps the @dev default
if it returns something unexpected, keeps the @dev default
but otherwise, reports that version
This patch exposes the apigility-version API. It will return the value of Apigility\VERSION, if defined, but otherwise return @dev.
In order to allow separating the skeleton version from the UI version, we need to be able to report the former to the latter.
zfcampus/zf-apigility-skeleton#130 adds a new constant,
Apigility\VERSION
, which reports the current skeleton version. zfcampus/zf-apigility-admin-ui updates the UI's "About" tab to:@dev
by default for the version@dev
default@dev
defaultThis patch exposes the apigility-version API. It will return the value of
Apigility\VERSION
, if defined, but otherwise return@dev
.