Skip to content

Thread API

Romain Monteil edited this page Jan 11, 2018 · 4 revisions

Thread API

Pass thrad control

use Kerox\Messenger\Model\ThreadControl;

$passThreadControl = ThreadControl::create(1234567890, 1234567890);
$passThreadControl->setMetadata('additional content that the caller wants to set');

$messenger->thread()->pass($passThreadControl);

Take thread control

use Kerox\Messenger\Model\ThreadControl;

$takeThreadControl = ThreadControl::create(1234567890);
$takeThreadControl->setMetadata('additional content that the caller wants to set');

$messenger->thread()->take($takeThreadControl);
Clone this wiki locally