Airship\Engine\Bolt\Security::tightenSecurityBolt PHP Method

tightenSecurityBolt() public method

After loading the Security bolt in place, configure it.
public tightenSecurityBolt ( )
    public function tightenSecurityBolt()
    {
        static $tightened = false;
        if ($tightened) {
            // This was already run once.
            return;
        }
        $state = State::instance();
        $db = isset($this->db) ? $this->db : \Airship\get_database();
        $this->airship_auth = Gears::get('Authentication', $state->keyring['auth.password_key'], $db);
        $this->airship_perms = Gears::get('Permissions', $db);
    }