Xenforo News Webhooks: Including phrases via getters will fail

[XFB] Konu Bilgileri

Konu Hakkında Merhaba, tarihinde XenForo kategorisinde News tarafından oluşturulan Webhooks: Including phrases via getters will fail başlıklı konuyu okuyorsunuz. Bu konu şimdiye dek 6 kez görüntülenmiş, 0 yorum ve 0 tepki puanı almıştır...
Kategori Adı XenForo
Konu Başlığı Webhooks: Including phrases via getters will fail
Konbuyu başlatan News
Başlangıç tarihi
Cevaplar
Görüntüleme
İlk mesaj tepki puanı
Son Mesaj Yazan News

News

Moderator
Top Poster Of Month
Credits
0
Assume you have a getter like this:
PHP:

Kod:
    public function getTagline(): \XF\Phrase
    {
        return \XF::phrase($this->getTaglinePhraseName());
    }

In your entity's setupApiResultData you include it like so: $result->includeGetter('tagline');

Sending the webhook will cause this error:

LogicException: Instances of XF\Db\AbstractAdapter cannot be serialized or unserialized in src/XF/Db/AbstractAdapter.php at line 686
  1. ...

Read more

Okumaya devam et...
 

Geri
Üst