-
5 votesanswersviews
Symfony2中的设计模式:EventDispatcher是Mediator或Event Aggregator吗?
从Symfony2的EventDispatcher组件文档: Symfony2 EventDispatcher组件以简单有效的方式实现Mediator模式,使所有这些事情成为可能,并使您的项目真正可扩展 . 我一直在阅读Event Aggregator和Mediator模式及其differences . 对我而言,事件聚合器看起来像是Mediator的一个特例,它使用事件来促进沟通,并且内部没...