[英]What's a Thead in FOSMessageBundle
我不明白FOSMessageBundle( https://github.com/FriendsOfSymfony/FOSMessageBundle )中的線程類是什么。
您能解釋一下它代表什么嗎?
線程就像對話,它包含相同參與者之間的消息列表。
仔細查看模型類將有助於您了解其工作原理:
/**
* Messages contained in this thread.
*
* @var Collection|MessageInterface[]
*/
protected $messages;
/**
* Thread metadata.
*
* @var Collection|ThreadMetadata[]
*/
protected $metadata;
/**
* Users participating in this conversation.
*
* @var Collection|ParticipantInterface[]
*/
protected $participants;
線程包含不同參與者的消息,例如論壇
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.