Skip to content

Commit

Permalink
Rename InterceptorHint -> FlavourHint
Browse files Browse the repository at this point in the history
  • Loading branch information
codeliner committed Nov 19, 2018
1 parent d401cdd commit 7fe354d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/OopFlavour/Aggregate/UserDescription.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Prooph\EventMachine\Runtime\OopFlavour;

final class InterceptorHint
final class FlavourHint
{
public static function useAggregate()
{
Expand Down

0 comments on commit 7fe354d

Please sign in to comment.