interface ApplicationInterface

Methods

getApplicationName()

Returns the name of the current application.

isPackagedApplication()

Returns whether the current application is distributed as a Composer package.

getApplicationPackageName()

Returns the package name of the current application.

getApplicationVersion()

Returns the version of the current application.

Details

at line 21
getApplicationName()

Returns the name of the current application.

This value must be the one that is sent as part of the "X-Contentful-User-Agent" header to the API.

at line 26
isPackagedApplication()

Returns whether the current application is distributed as a Composer package.

at line 33
getApplicationPackageName()

Returns the package name of the current application.

If the application is not distributed as a package, this method must return an empty string.

at line 40
getApplicationVersion()

Returns the version of the current application.

This must return an actual version if the application is not distributed as a Composer package.