texdc/momento
Composer 安装命令:
composer require texdc/momento
包简介
A library for domain events
关键字:
README 文档
README
Simple domain event library inspired by Vaughn Vernon's book Implementing Domain Driven Design, and some of his code samples.
Event Handlers
namespace My\Event; use texdc\momento\AbstractEventHandler; use texdc\momento\EventInterface; final class Handler extends AbstractEventHandler { protected static $validEventTypes = [ FooEvent::TYPE, BarEvent::TYPE, ]; public function __invoke(EventInterface $anEvent) { $type = $anEvent->eventType(); $this->guardValidEventType($type); call_user_func([$this, $type], $anEvent); } // ... }
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2013-12-26