コード例 #1
0
ファイル: ProjectQuerySpec.php プロジェクト: watoki/karma
 private function genericProjector($projection)
 {
     return $this->projector(GenericProjectionFactory::staticProjection($projection));
 }
コード例 #2
0
ファイル: GenericApplication.php プロジェクト: watoki/karma
 /**
  * @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());
 }