Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix Callback listener

  • Loading branch information...
commit 6bae56ec7339bf861906f6069b7e70f2e04cb2b0 1 parent b147ae5
@GromNaN authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Buzy/Listener/CallbackListener.php
View
8 src/Buzy/Listener/CallbackListener.php
@@ -32,8 +32,8 @@ public function __construct(array $callbacks, $params = null)
*/
public function onRequest(BrowserEvent $event)
{
- if (isset($this->callbacks['before'])) {
- call_user_func($this->callbacks['before'], $event, $this->params);
+ if (isset($this->callbacks['request'])) {
+ call_user_func($this->callbacks['request'], $event, $this->params);
}
}
@@ -42,8 +42,8 @@ public function onRequest(BrowserEvent $event)
*/
public function onResponse(BrowserEvent $event)
{
- if (isset($this->callbacks['after'])) {
- call_user_func($this->callbacks['after'], $event, $this->params);
+ if (isset($this->callbacks['response'])) {
+ call_user_func($this->callbacks['response'], $event, $this->params);
}
}
}

0 comments on commit 6bae56e

Please sign in to comment.
Something went wrong with that request. Please try again.