public airshipLand ( ) |
public function airshipLand()
{
parent::airshipLand();
$state = State::instance();
$cabin_names = [];
foreach ($state->cabins as $c) {
$cabin_names[] = $c['name'];
}
$this->airship_lens_object->store('state', ['cabins' => $state->cabins, 'cabin_names' => $cabin_names, 'manifest' => $state->manifest]);
}
/** * This function is called after the dependencies have been injected by * AutoPilot. Think of it as a user-land constructor. */ public function airshipLand() { parent::airshipLand(); $config = State::instance(); if (empty($config->universal['notary']['enabled'])) { \Airship\json_response(['status' => 'error', 'message' => 'This Airship does not offer Notary services.']); } $this->sk = $config->keyring['notary.online_signing_key']; $this->pk = $this->sk->derivePublicKey(); $this->channel = $config->universal['notary']['channel']; $this->chanUp = $this->blueprint('ChannelUpdates', $this->channel); }