我想通过FOSMessageBundle发送消息,所以我创建了一个包含一个名为send的方法的控制器,之后我在这个实例中出错:
Catchable Fatal Error: Argument 1 passed to FOS\MessageBundle\Sender\Sender::send() must implement interface FOS\MessageBundle\Model\MessageInterface, instance of FOS\MessageBundle\MessageBuilder\NewThreadMessageBuilder given, called in /projet/pivotalpartnersbo/src/Application/Sonata/MessageBundle/Controller/MessageController.php on line 32
错误信息是:
{{1}}