prooph/prooph-event-store-module
最新稳定版本:v2.0
Composer 安装命令:
composer require prooph/prooph-event-store-module
包简介
ZF2 module that provides default functionality to use ProophEventStore in a ZF2 application
README 文档
README
[deprecated] Zend Framework 2 Module for ProophEventStore This module only support ProophEventStore <= 2.x. If you want to use PES v3+ with ZF2 then checkout proophessor
Installation
You can install ProophEventStoreModule via composer by adding "prooph/prooph-event-store-module": "~2.0" as requirement to your composer.json.
Post installation
Enabling it in your application.config.phpfile.
<?php return array( 'modules' => array( // ... 'ProophEventStoreModule', ), // ... );
Configuration
DB Configuration
Copy the prooph.eventstore.db.local.php to your
config/autoload directory and adjust the config to meet your needs. This config has the .local.php cause it requests you to configure
a database connection (if you do not use the application wide configured Zend\Db\Adapter\Adapter) and should not be included in version control.
EventStore Configuration
Copy the prooph.eventstore.global.php to your
config/autoload directory and adjust the config to meet your needs.
Retrieve ProophEventStore
The ProophEventStore can be retrieved from ServiceManager by using the alias prooph.event_store
$eventStore = $services->get('prooph.event_store');
统计信息
- 总下载量: 2.51k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-06-29