Skip to content

Commit 7fe354d

Browse files
author
codeliner
committed
Rename InterceptorHint -> FlavourHint
1 parent d401cdd commit 7fe354d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/OopFlavour/Aggregate/UserDescription.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Prooph\EventMachine\EventMachine;
1515
use Prooph\EventMachine\EventMachineDescription;
16-
use Prooph\EventMachine\Runtime\Oop\InterceptorHint;
16+
use Prooph\EventMachine\Runtime\Oop\FlavourHint;
1717
use ProophExample\FunctionalFlavour\Api\Command;
1818
use 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()

src/Runtime/Oop/InterceptorHint.php renamed to src/Runtime/Oop/FlavourHint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Prooph\EventMachine\Runtime\OopFlavour;
1515

16-
final class InterceptorHint
16+
final class FlavourHint
1717
{
1818
public static function useAggregate()
1919
{

0 commit comments

Comments
 (0)