From 7fe354d95d23f22de4032238661d8c3fdb7fd0d6 Mon Sep 17 00:00:00 2001 From: codeliner Date: Mon, 19 Nov 2018 23:39:44 +0100 Subject: [PATCH] Rename InterceptorHint -> FlavourHint --- examples/OopFlavour/Aggregate/UserDescription.php | 8 ++++---- src/Runtime/Oop/{InterceptorHint.php => FlavourHint.php} | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/Runtime/Oop/{InterceptorHint.php => FlavourHint.php} (95%) diff --git a/examples/OopFlavour/Aggregate/UserDescription.php b/examples/OopFlavour/Aggregate/UserDescription.php index 9fcdeb1..a643569 100644 --- a/examples/OopFlavour/Aggregate/UserDescription.php +++ b/examples/OopFlavour/Aggregate/UserDescription.php @@ -13,7 +13,7 @@ use Prooph\EventMachine\EventMachine; use Prooph\EventMachine\EventMachineDescription; -use Prooph\EventMachine\Runtime\Oop\InterceptorHint; +use Prooph\EventMachine\Runtime\Oop\FlavourHint; use ProophExample\FunctionalFlavour\Api\Command; use ProophExample\FunctionalFlavour\Api\Event; @@ -46,16 +46,16 @@ private static function describeRegisterUser(EventMachine $eventMachine): void // because OOPAggregateCallInterceptor does not use this callable // see OOPAggregateCallInterceptor::callApplyFirstEvent() // and OOPAggregateCallInterceptor::callApplySubsequentEvent() - ->apply([InterceptorHint::class, 'useAggregate']); + ->apply([FlavourHint::class, 'useAggregate']); } private static function describeChangeUsername(EventMachine $eventMachine): void { $eventMachine->process(Command::CHANGE_USERNAME) ->withExisting(User::TYPE) - ->handle([InterceptorHint::class, 'useAggregate']) + ->handle([FlavourHint::class, 'useAggregate']) ->recordThat(Event::USERNAME_WAS_CHANGED) - ->apply([InterceptorHint::class, 'useAggregate']); + ->apply([FlavourHint::class, 'useAggregate']); } private function __construct() diff --git a/src/Runtime/Oop/InterceptorHint.php b/src/Runtime/Oop/FlavourHint.php similarity index 95% rename from src/Runtime/Oop/InterceptorHint.php rename to src/Runtime/Oop/FlavourHint.php index 3502ad3..ffc8381 100644 --- a/src/Runtime/Oop/InterceptorHint.php +++ b/src/Runtime/Oop/FlavourHint.php @@ -13,7 +13,7 @@ use Prooph\EventMachine\Runtime\OopFlavour; -final class InterceptorHint +final class FlavourHint { public static function useAggregate() {