public function licenceListAction() { $accessToken =
$this->
getAccessToken();
if (!
$accessToken instanceof AccessTokenStruct
) { $this->
View()->
assign(['success' => false, 'message' => 'Access token is not available'
]);
return;
} $context =
new LicenceRequest( $this->
getLocale(),
$this->
getVersion(),
$this->
getDomain(),
$accessToken );
try { $licences =
$this->
get(PluginStoreService::
class)->
getLicences($context);
} catch (Exception
$e) { $this->
handleException($e);