Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 1.15 KB

getting_started.md

File metadata and controls

49 lines (41 loc) · 1.15 KB

Getting started

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

Download the bundle using composer by running

composer require prooph/event-store-symfony-bundle

at the root of your Symfony project.

Enable the Bundle

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.