Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renamed type hinting to correctly reference DomainEventStreamInterface #70

Merged
merged 1 commit into from
Nov 3, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Broadway/EventHandling/EventBusInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Broadway\EventHandling;

use Broadway\Domain\DomainEventStream;
use Broadway\Domain\DomainEventStreamInterface;

/**
* Publishes events to the subscribed event listeners.
Expand All @@ -28,7 +28,7 @@ public function subscribe(EventListenerInterface $eventListener);
/**
* Publishes the events from the domain event stream to the listeners.
*
* @param DomainEventStream $domainMessages
* @param DomainEventStreamInterface $domainMessages
*/
public function publish(DomainEventStream $domainMessages);
public function publish(DomainEventStreamInterface $domainMessages);
}
4 changes: 2 additions & 2 deletions src/Broadway/EventHandling/SimpleEventBus.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Broadway\EventHandling;

use Broadway\Domain\DomainEventStream;
use Broadway\Domain\DomainEventStreamInterface;

/**
* Simple synchronous publishing of events.
Expand All @@ -33,7 +33,7 @@ public function subscribe(EventListenerInterface $eventListener)
/**
* {@inheritDoc}
*/
public function publish(DomainEventStream $domainMessages)
public function publish(DomainEventStreamInterface $domainMessages)
{
foreach ($domainMessages as $domainMessage) {
$this->queue[] = $domainMessage;
Expand Down
4 changes: 2 additions & 2 deletions src/Broadway/EventHandling/TraceableEventBus.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Broadway\EventHandling;

use Broadway\Domain\DomainEventStream;
use Broadway\Domain\DomainEventStreamInterface;

/**
* Event bus that is able to record all dispatched events.
Expand All @@ -38,7 +38,7 @@ public function subscribe(EventListenerInterface $eventListener)
/**
* {@inheritDoc}
*/
public function publish(DomainEventStream $domainMessages)
public function publish(DomainEventStreamInterface $domainMessages)
{
$this->eventBus->publish($domainMessages);

Expand Down