ZF2 module that provides default functionality to use ProophEventStore in a ZF2 application
You can install ProophEventStoreModule via composer by adding
"prooph/prooph-event-store-module": "~2.0" as requirement to your composer.json.
Enabling it in your
<?php return array( 'modules' => array( // ... 'ProophEventStoreModule', ), // ... );
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.
Copy the prooph.eventstore.global.php to your
config/autoload directory and adjust the config to meet your needs.
The ProophEventStore can be retrieved from ServiceManager by using the alias
$eventStore = $services->get('prooph.event_store');