@@ -293,8 +293,6 @@ private function registerAggregateCommandHandler(Configuration $configuration, I
293293
294294 $ serviceActivatorHandler ->chain (
295295 SaveAggregateServiceBuilder::create (
296- $ aggregateClassDefinition ,
297- $ interfaceToCallRegistry ,
298296 $ baseEventSourcingConfiguration
299297 )
300298 ->withAggregateRepositoryFactories ($ aggregateRepositoryReferenceNames )
@@ -483,11 +481,7 @@ public function registerForDirectLoadAndSaveOfAggregate(InterfaceToCallRegistry
483481 MessageProcessorActivatorBuilder::create ()
484482 ->withInputChannelName (self ::getRegisterAggregateSaveRepositoryInputChannel ($ aggregateClass ))
485483 ->chain (
486- SaveAggregateServiceBuilder::create (
487- $ aggregateClassDefinition ,
488- $ interfaceToCallRegistry ,
489- $ baseEventSourcingConfiguration
490- )
484+ SaveAggregateServiceBuilder::create ($ baseEventSourcingConfiguration )
491485 ->withAggregateRepositoryFactories ($ this ->aggregateRepositoryReferenceNames )
492486 )
493487 );
@@ -497,11 +491,7 @@ public function registerForDirectLoadAndSaveOfAggregate(InterfaceToCallRegistry
497491 MessageProcessorActivatorBuilder::create ()
498492 ->withInputChannelName (self ::getRegisterAggregateSaveRepositoryInputChannel ($ aggregateClass ) . '.test_setup_state ' )
499493 ->chain (
500- SaveAggregateServiceBuilder::create (
501- $ aggregateClassDefinition ,
502- $ interfaceToCallRegistry ,
503- $ baseEventSourcingConfiguration
504- )
494+ SaveAggregateServiceBuilder::create ($ baseEventSourcingConfiguration )
505495 ->withAggregateRepositoryFactories ($ this ->aggregateRepositoryReferenceNames )
506496 ->withPublishEvents (false )
507497 )
0 commit comments