Skip to content

Commit

Permalink
fix: Update event dispatch call
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoya-de committed Jun 23, 2022
1 parent 53f972c commit 7213f6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function __construct(
$this->repositoryMapping[$repository->getType()] = $repository;
}

$dispatcher->dispatch('makaira.connect.repository', new Event\RepositoryCollectEvent($this));
$dispatcher->dispatch(new Event\RepositoryCollectEvent($this), 'makaira.connect.repository');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Repository/ModifierList.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract class ModifierList
public function __construct(string $tag, EventDispatcherInterface $dispatcher, array $modifiers)
{
$this->modifiers = $modifiers;
$dispatcher->dispatch($tag, new ModifierCollectEvent($this));
$dispatcher->dispatch(new ModifierCollectEvent($this), $tag);
}

/**
Expand Down

0 comments on commit 7213f6c

Please # to comment.