Webhooks: Including phrases via getters will fail

Assume you have a getter like this:
PHP:

Код:
    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

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ