Skip to content

Thread API

Romain Monteil edited this page Aug 28, 2017 · 4 revisions

Thread API

Pass thrad control

use Kerox\Messenger\Model\ThreadControl;

$passThreadControl = new ThreadControl(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 = new ThreadControl(1234567890);
$takeThreadControl->setMetadata('additional content that the caller wants to set');

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