0
我想使用sonataNotificationBundle,我做了所有的配置在文档中提到下swift_mailer,但我得到以下错误,无法识别的选项sonata_notification.consumers错误
Unrecognized options swift_mailer under sonata_notification.consumers
在此之前,我是越来越
Unrecognized options consumer under sonata_notification
我挖至奏鸣曲/ NotificationBundle/DependencyInjection/configuration.php文件,有
->arrayNode('consumers')
写入代码,但在文档中它是“消费者”
http://sonata-project.org/bundles/notification/2-1/doc/reference/advanced_configuration.html
我改变它“消费者”之后,我现在得到以下错误
Unrecognized options swift_mailer under sonata_notification.consumers
,我可以让它工作 - > arrayNode( '消费者') - > addDefaultsIfNotSet() - >儿童() - > arrayNode( 'swift_mailer') - > addDefaultsIfNotSet() - >儿童() - > scalarNode( '路径') - >()结束 - >结束() - >结束() - >结束() - >结束() – vishal
不这样做,您需要删除config.yml中的消费者选项,它会自动添加默认值。 – rpg600
工作!谢谢,但电子邮件存储到数据库,但没有得到发送到电子邮件地址。如何触发swiftmailer消费者?我为此创建了另一个问题,http://stackoverflow.com/questions/17615547/sonatanotificationbundle-emails-getting-stored-to-database-but-swiftmailer-cons – vishal