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

Add AggregateFactory to the example code #64

Merged
merged 2 commits into from Oct 20, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/event-sourced-domain-with-tests/Invites.php
Expand Up @@ -2,6 +2,8 @@

require_once __DIR__ . '/../bootstrap.php';

use Broadway\EventSourcing\AggregateFactory\PublicConstructorAggregateFactory;

/**
* Invitation aggregate root.
*
Expand Down Expand Up @@ -105,7 +107,7 @@ class InvitationRepository extends Broadway\EventSourcing\EventSourcingRepositor
{
public function __construct(Broadway\EventStore\EventStoreInterface $eventStore, Broadway\EventHandling\EventBusInterface $eventBus)
{
parent::__construct($eventStore, $eventBus, 'Invitation');
parent::__construct($eventStore, $eventBus, 'Invitation', new PublicConstructorAggregateFactory());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the examples we use the complete namespace. It is easier to spot where a specific class is when quickly browsing through the examples.

}
}

Expand Down