Skip to content

Commit

Permalink
Remove CqrsBridge
Browse files Browse the repository at this point in the history
  • Loading branch information
codeliner committed Jan 12, 2014
1 parent 8eb5aee commit c00015a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 64 deletions.
14 changes: 0 additions & 14 deletions src/Malocher/EventStore/Configuration/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,18 +266,4 @@ public function setEventDispatcher(EventDispatcherInterface $eventDispatcher)
{
$this->eventDispatcher = $eventDispatcher;
}

public function addListeners(EventStore $eventStore)
{
$this->tryAddCqrsListener($eventStore);
//@odo: implement listener registration via configuration
}

protected function tryAddCqrsListener(EventStore $eventStore)
{
if (isset($this->config['enable_cqrs']) && $this->config['enable_cqrs']) {
$publishEventListener = new PublishEventsListener($this->config['cqrs_bridge']);
$eventStore->events()->addSubscriber($publishEventListener);
}
}
}
48 changes: 0 additions & 48 deletions src/Malocher/EventStore/CqrsBridge/PublishEventsListener.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/Malocher/EventStore/EventStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ public function __construct(Configuration $config)
if ($this->autoGenerateSnapshots) {
$this->lookupSnapshots = true;
}

$config->addListeners($this);
}

/**
Expand Down

0 comments on commit c00015a

Please sign in to comment.