jdr/event-recorder-tactician-bridge

战术家中间件,用于派发任何已记录的事件

0.0.1 2017-12-09 21:59 UTC

This package is auto-updated.

Last update: 2024-09-12 02:30:20 UTC


README

Latest Version on Packagist Software License Total Downloads

league/tactician 的中间件,用于派发由 jdr/event-recorder 存储的事件。

安装

通过 Composer

$ composer require jdr/event-recorder-tactician-bridge

使用方法

将其添加为战术家中间件。

<?php

use JDR\EventRecorder\EventDispatcher;
use JDR\EventRecorder\RecordsEvents;
use JDR\EventRecorderTacticianBridge\ReleaseRecordedEvents;
use League\Tactician\CommandBus;

$commandBus = new CommandBus([
    new ReleaseRecordedEvents(new EventDispatcher(), new RecordsEvents()),
    // ...
]);

变更日志

请参阅 CHANGELOG 了解最近更改的详细信息。

测试

$ bin/phpspec run

贡献

请参阅 CONTRIBUTINGCONDUCT 了解详细信息。

安全

如果您发现任何与安全相关的问题,请通过电子邮件 dev@johanderuijter.nl 而不是使用问题跟踪器来报告。

致谢

许可证

MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件