예제 #1
0
 private function genericProjector($projection)
 {
     return $this->projector(GenericProjectionFactory::staticProjection($projection));
 }
예제 #2
0
 /**
  * @param EventStore $store
  * @param AggregateFactory|null $aggregates
  * @param ProjectionFactory|null $projections
  */
 public function __construct(EventStore $store, AggregateFactory $aggregates = null, ProjectionFactory $projections = null)
 {
     parent::__construct($store, $aggregates ?: GenericAggregateFactory::genericRoot(), $projections ?: GenericProjectionFactory::genericProjection());
 }