From 8ad125c7a6cfa09b86da316afa1c31b25497465b Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Mon, 25 Mar 2013 18:26:41 +0100 Subject: [PATCH] Reverting the naming from 'callbacks' to 'listeners' for callback handlers in aggregates --- src/Strategy/FeedStrategy.php | 4 ++-- src/Strategy/JsonStrategy.php | 4 ++-- src/Strategy/PhpRendererStrategy.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Strategy/FeedStrategy.php b/src/Strategy/FeedStrategy.php index eb2b0a5b..9072d4c7 100644 --- a/src/Strategy/FeedStrategy.php +++ b/src/Strategy/FeedStrategy.php @@ -39,8 +39,8 @@ public function __construct(FeedRenderer $renderer) */ public function attach(EventManagerInterface $events, $priority = 1) { - $this->callbacks[] = $events->attach(ViewEvent::EVENT_RENDERER, array($this, 'selectRenderer'), $priority); - $this->callbacks[] = $events->attach(ViewEvent::EVENT_RESPONSE, array($this, 'injectResponse'), $priority); + $this->listeners[] = $events->attach(ViewEvent::EVENT_RENDERER, array($this, 'selectRenderer'), $priority); + $this->listeners[] = $events->attach(ViewEvent::EVENT_RESPONSE, array($this, 'injectResponse'), $priority); } /** diff --git a/src/Strategy/JsonStrategy.php b/src/Strategy/JsonStrategy.php index f4f27ff5..49d7860a 100644 --- a/src/Strategy/JsonStrategy.php +++ b/src/Strategy/JsonStrategy.php @@ -55,8 +55,8 @@ public function __construct(JsonRenderer $renderer) */ public function attach(EventManagerInterface $events, $priority = 1) { - $this->callbacks[] = $events->attach(ViewEvent::EVENT_RENDERER, array($this, 'selectRenderer'), $priority); - $this->callbacks[] = $events->attach(ViewEvent::EVENT_RESPONSE, array($this, 'injectResponse'), $priority); + $this->listeners[] = $events->attach(ViewEvent::EVENT_RENDERER, array($this, 'selectRenderer'), $priority); + $this->listeners[] = $events->attach(ViewEvent::EVENT_RESPONSE, array($this, 'injectResponse'), $priority); } /** diff --git a/src/Strategy/PhpRendererStrategy.php b/src/Strategy/PhpRendererStrategy.php index a7ca724f..9b1c8b7e 100644 --- a/src/Strategy/PhpRendererStrategy.php +++ b/src/Strategy/PhpRendererStrategy.php @@ -75,8 +75,8 @@ public function getContentPlaceholders() */ public function attach(EventManagerInterface $events, $priority = 1) { - $this->callbacks[] = $events->attach(ViewEvent::EVENT_RENDERER, array($this, 'selectRenderer'), $priority); - $this->callbacks[] = $events->attach(ViewEvent::EVENT_RESPONSE, array($this, 'injectResponse'), $priority); + $this->listeners[] = $events->attach(ViewEvent::EVENT_RENDERER, array($this, 'selectRenderer'), $priority); + $this->listeners[] = $events->attach(ViewEvent::EVENT_RESPONSE, array($this, 'injectResponse'), $priority); } /**