Commit 5562dca5 authored by Mark Harding's avatar Mark Harding
Browse files

(chore): export pro on api config

parent 9a498785
Loading
Loading
Loading
Loading
+9 −1
Original line number Original line Diff line number Diff line
@@ -38,12 +38,14 @@ class Exported
        $config = null,
        $config = null,
        $thirdPartyNetworks = null,
        $thirdPartyNetworks = null,
        $i18n = null,
        $i18n = null,
        $blockchain = null
        $blockchain = null,
        $proDomain = null
    ) {
    ) {
        $this->config = $config ?: Di::_()->get('Config');
        $this->config = $config ?: Di::_()->get('Config');
        $this->thirdPartyNetworks = $thirdPartyNetworks ?: Di::_()->get('ThirdPartyNetworks\Manager');
        $this->thirdPartyNetworks = $thirdPartyNetworks ?: Di::_()->get('ThirdPartyNetworks\Manager');
        $this->i18n = $i18n ?: Di::_()->get('I18n');
        $this->i18n = $i18n ?: Di::_()->get('I18n');
        $this->blockchain = $blockchain ?: Di::_()->get('Blockchain\Manager');
        $this->blockchain = $blockchain ?: Di::_()->get('Blockchain\Manager');
        $this->proDomain = $proDomain ?: Di::_()->get('Pro\Domain');
    }
    }


    /**
    /**
@@ -110,6 +112,12 @@ class Exported
            $exported['from_email_confirmation'] = true;
            $exported['from_email_confirmation'] = true;
        }
        }


        // Pro export

        if ($pro = $this->proDomain->lookup($_SERVER['HTTP_HOST'] ?? null)) {
            $exported['pro'] = $pro;
        }

        return $exported;
        return $exported;
    }
    }
}
}