Airship\Cabin\Bridge\Landing\LandingGear::airshipLand PHP Method

airshipLand() public method

This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
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]);
        }

Usage Example

Example #1
0
 /**
  * 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);
 }
All Usage Examples Of Airship\Cabin\Bridge\Landing\LandingGear::airshipLand
LandingGear