for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CultuurNet\UDB3\Media;
use Broadway\EventHandling\EventBusInterface;
use Broadway\EventSourcing\AggregateFactory\PublicConstructorAggregateFactory;
use Broadway\EventSourcing\EventSourcingRepository;
use Broadway\EventStore\EventStoreInterface;
class MediaObjectRepository extends EventSourcingRepository
{
public function __construct(
EventStoreInterface $eventStore,
EventBusInterface $eventBus,
array $eventStreamDecorators = array()
) {
parent::__construct(
$eventStore,
$eventBus,
MediaObject::class,
new PublicConstructorAggregateFactory(),
$eventStreamDecorators
);
}