Skip to content
Permalink
Browse files

Rename deprecated attach() to on().

  • Loading branch information...
robertpustulka committed May 4, 2015
1 parent 62e1e2a commit fa1e23461ad15ad5989acfa102612023b3de91bc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Core/ObjectRegistry.php
@@ -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;
}

0 comments on commit fa1e234

Please sign in to comment.
You can’t perform that action at this time.