/** * @test */ public function hydrateSetsParameterResolverToAnnotatedSaga() { $parameterResolver = new DefaultParameterResolver(); $saga = new AnnotatedSagaFactoryTest_Saga(); $factory = new AnnotatedSagaFactory($parameterResolver); $factory->hydrate($saga); self::assertEquals($parameterResolver, $saga->getParameterResolver()); }
/** * @param Saga $saga * @throws \InvalidArgumentException */ public function hydrate(Saga $saga) { /* @var $saga ToDoSaga */ parent::hydrate($saga); $saga->setLogger($this->logger); $saga->setEventScheduler($this->scheduler); }