Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/EventManagerAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ trait EventManagerAwareTrait
* identifiers, in addition to any string or array of strings set to the
* $this->eventIdentifier property.
*/
public function setEventManager(EventManagerInterface $events)
public function setEventManager(EventManagerInterface $eventManager)
{
$identifiers = [self::class, static::class];
if (isset($this->eventIdentifier)) {
Expand All @@ -48,8 +48,8 @@ public function setEventManager(EventManagerInterface $events)
}
// silently ignore invalid eventIdentifier types
}
$events->setIdentifiers($identifiers);
$this->events = $events;
$eventManager->setIdentifiers($identifiers);
$this->events = $eventManager;
if (method_exists($this, 'attachDefaultListeners')) {
$this->attachDefaultListeners();
}
Expand Down