Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
bramdevries committed Mar 15, 2017
2 parents 23e763b + 578f82c commit 9621254
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### 1.0.1

### Fixed

- Fixed incorrect binding for EventManagement interface
- Fixed missing parameters when constructing a DbalEventStore

### 1.0.0

### Changed
Expand Down
5 changes: 4 additions & 1 deletion src/EventStore/EventStoreManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Broadway\EventStore\Dbal\DBALEventStore;
use Broadway\EventStore\InMemoryEventStore;
use Broadway\Serializer\Serializer;
use Broadway\UuidGenerator\Converter\BinaryUuidConverter;
use Doctrine\DBAL\DriverManager;
use Illuminate\Support\Manager;

Expand Down Expand Up @@ -41,7 +42,9 @@ protected function createDbalDriver()
$connection,
$this->app->make(Serializer::class),
$this->app->make(Serializer::class),
array_get($config, 'table', 'event_store')
array_get($config, 'table', 'event_store'),
false,
new BinaryUuidConverter()
);
}

Expand Down
9 changes: 6 additions & 3 deletions src/EventStore/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Broadway\EventHandling\EventBus;
use Broadway\EventHandling\SimpleEventBus;
use Broadway\EventStore\EventStore;
use Broadway\EventStore\Management\EventStoreManagement;
use Madewithlove\LaravelCqrsEs\EventHandling\ReplayingEventBusInterface;
use Madewithlove\LaravelCqrsEs\EventHandling\SimpleReplayingEventBus;
use Madewithlove\LaravelCqrsEs\EventStore\Console\Replay;
Expand Down Expand Up @@ -41,7 +42,7 @@ public function register()
return new SimpleReplayingEventBus();
});
$this->app->alias('event_store.driver', EventStore::class);
$this->app->alias('event_store.driver', EventStoreManager::class);
$this->app->alias('event_store.driver', EventStoreManagement::class);
}

/**
Expand All @@ -51,8 +52,10 @@ public function provides()
{
return [
'event_store.driver',
EventStoreManagementInterface::class,
EventStoreInterface::class,
EventStoreManagement::class,
EventStore::class,
EventBus::class,
EventDispatcher::class,
];
}
}
2 changes: 1 addition & 1 deletion src/Serializers/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function register()
public function provides()
{
return [
SerializerInterface::class,
Serializer::class,
];
}
}

0 comments on commit 9621254

Please sign in to comment.