From 72ee0237c0004ac965369771a0094f65bbca5f9d Mon Sep 17 00:00:00 2001 From: prolic Date: Wed, 23 May 2012 22:15:11 +0200 Subject: [PATCH] replaced "get_class()" with "get_called_class()" because it's faster --- src/ProvidesEvents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProvidesEvents.php b/src/ProvidesEvents.php index a6eb0ba..fe489e6 100644 --- a/src/ProvidesEvents.php +++ b/src/ProvidesEvents.php @@ -45,7 +45,7 @@ trait ProvidesEvents */ public function setEventManager(EventManagerInterface $events) { - $identifiers = array(__CLASS__, get_class($this)); + $identifiers = array(__CLASS__, get_called_class()); if (isset($this->eventIdentifier)) { if ((is_string($this->eventIdentifier)) || (is_array($this->eventIdentifier))