Permalink
Browse files

Added Namespace notation to RestfulController event identifiers

  • Loading branch information...
1 parent 5ca09c1 commit 4b7df2906222b1315f5846a3a80c1c3a030beed5 @davidwindell committed Jul 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 library/Zend/Mvc/Controller/AbstractRestfulController.php
@@ -270,7 +270,8 @@ public function setEventManager(EventManagerInterface $events)
$events->setIdentifiers(array(
'Zend\Stdlib\DispatchableInterface',
__CLASS__,
- get_called_class()
+ get_called_class(),
+ substr(get_called_class(), 0, strpos(get_called_class(), '\\'))
));
$this->events = $events;
$this->attachDefaultListeners();

0 comments on commit 4b7df29

Please sign in to comment.