File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
examples/OopFlavour/Aggregate Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1313
1414use Prooph \EventMachine \EventMachine ;
1515use Prooph \EventMachine \EventMachineDescription ;
16- use Prooph \EventMachine \Runtime \Oop \InterceptorHint ;
16+ use Prooph \EventMachine \Runtime \Oop \FlavourHint ;
1717use ProophExample \FunctionalFlavour \Api \Command ;
1818use ProophExample \FunctionalFlavour \Api \Event ;
1919
@@ -46,16 +46,16 @@ private static function describeRegisterUser(EventMachine $eventMachine): void
4646 // because OOPAggregateCallInterceptor does not use this callable
4747 // see OOPAggregateCallInterceptor::callApplyFirstEvent()
4848 // and OOPAggregateCallInterceptor::callApplySubsequentEvent()
49- ->apply ([InterceptorHint ::class, 'useAggregate ' ]);
49+ ->apply ([FlavourHint ::class, 'useAggregate ' ]);
5050 }
5151
5252 private static function describeChangeUsername (EventMachine $ eventMachine ): void
5353 {
5454 $ eventMachine ->process (Command::CHANGE_USERNAME )
5555 ->withExisting (User::TYPE )
56- ->handle ([InterceptorHint ::class, 'useAggregate ' ])
56+ ->handle ([FlavourHint ::class, 'useAggregate ' ])
5757 ->recordThat (Event::USERNAME_WAS_CHANGED )
58- ->apply ([InterceptorHint ::class, 'useAggregate ' ]);
58+ ->apply ([FlavourHint ::class, 'useAggregate ' ]);
5959 }
6060
6161 private function __construct ()
Original file line number Diff line number Diff line change 1313
1414use Prooph \EventMachine \Runtime \OopFlavour ;
1515
16- final class InterceptorHint
16+ final class FlavourHint
1717{
1818 public static function useAggregate ()
1919 {
You can’t perform that action at this time.
0 commit comments