Browse Source

Rename deprecated attach() to on().

Robert 11 years ago
parent
commit
fa1e23461a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Core/ObjectRegistry.php

+ 1 - 1
src/Core/ObjectRegistry.php

@@ -279,7 +279,7 @@ abstract class ObjectRegistry
         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;
     }