Skip to content

Commit

Permalink
Rename deprecated attach() to on().
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpustulka committed May 4, 2015
1 parent 62e1e2a commit fa1e234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/ObjectRegistry.php
Expand Up @@ -279,7 +279,7 @@ public function set($objectName, $object)
list(, $name) = pluginSplit($objectName);
$this->unload($objectName);
if (isset($this->_eventManager) && $object instanceof EventListenerInterface) {
$this->eventManager()->attach($object);
$this->eventManager()->on($object);
}
$this->_loaded[$name] = $object;
}
Expand Down

0 comments on commit fa1e234

Please sign in to comment.