Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed May 22, 2018
1 parent ca95b31 commit a0d1c0c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/EventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
class EventSubscriber
{
/** @var \Spatie\EventProjector\EventProjectionist */
protected $evenSorcerer;
protected $eventProjectionist;

/** @var string */
protected $storedEventModelClass;

public function __construct(EventProjectionist $evenSorcerer, string $storedEventModelClass)
public function __construct(EventProjectionist $eventProjectionist, string $storedEventModelClass)
{
$this->evenSorcerer = $evenSorcerer;
$this->eventProjectionist = $eventProjectionist;

$this->storedEventModelClass = $storedEventModelClass;
}
Expand All @@ -35,9 +35,9 @@ public function storeEvent(ShouldBeStored $event)
{
$this->storedEventModelClass::createForEvent($event);

$this->evenSorcerer
->callEventHandlers($this->evenSorcerer->projectors, $event)
->callEventHandlers($this->evenSorcerer->reactors, $event);
$this->eventProjectionist
->callEventHandlers($this->eventProjectionist->projectors, $event)
->callEventHandlers($this->eventProjectionist->reactors, $event);
}

protected function shouldBeStored($event): bool
Expand Down

0 comments on commit a0d1c0c

Please sign in to comment.