private function genericProjector($projection) { return $this->projector(GenericProjectionFactory::staticProjection($projection)); }
/** * @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()); }