This documentation covers just the configuration of the Prooph Event Store in Symfony. To inform yourself about the Event Store please have a look at the official documentation.
Download the bundle using composer by running
composer require prooph/event-store-symfony-bundle
at the root of your Symfony project.
To start using this bundle, register the bundle in your application's kernel class:
<?php
// app/AppKernel.php
// …
class AppKernel extends Kernel
{
// …
public function registerBundles()
{
$bundles = [
// …
new Prooph\Bundle\EventStore\ProophEventStoreBundle(),
// …
];
// …
}
// …
}
or, if you are using the new flex structure:
<?php
// config/bundles.php
return [
// …
Prooph\Bundle\EventStore\ProophEventStoreBundle::class => ['all' => true],
];
Now that you have installed the bundle you might want start with configuring an Event Store.