Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fill SharedEventManager events with identifiers #4526

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/Zend/EventManager/SharedEventManager.php
Expand Up @@ -65,7 +65,7 @@ public function attach($id, $event, $callback, $priority = 1)
$listeners = array();
foreach ($ids as $id) {
if (!array_key_exists($id, $this->identifiers)) {
$this->identifiers[$id] = new EventManager();
$this->identifiers[$id] = new EventManager($id);
}
$listeners[] = $this->identifiers[$id]->attach($event, $callback, $priority);
}
Expand Down