summaryrefslogtreecommitdiff
path: root/app/Subscriber/BaseSubscriber.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-16 21:35:25 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-16 21:35:25 -0500
commitee19c626485037adb57ae85b0cba598d37bd0010 (patch)
tree7ffdf6710c48490c0051f1564b45fdfc7bbe5b5f /app/Subscriber/BaseSubscriber.php
parent6a7b8ec60f265413ca88878dba6180456257d370 (diff)
Allow one call by event
Diffstat (limited to 'app/Subscriber/BaseSubscriber.php')
-rw-r--r--app/Subscriber/BaseSubscriber.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Subscriber/BaseSubscriber.php b/app/Subscriber/BaseSubscriber.php
index 875c5e26..2e41da76 100644
--- a/app/Subscriber/BaseSubscriber.php
+++ b/app/Subscriber/BaseSubscriber.php
@@ -21,19 +21,19 @@ class BaseSubscriber extends Base
private $called = array();
/**
- * Check if a method has been executed
+ * Check if a listener has been executed
*
* @access public
- * @param string $method
+ * @param string $key
* @return boolean
*/
- public function isExecuted($method = '')
+ public function isExecuted($key = '')
{
- if (isset($this->called[$method])) {
+ if (isset($this->called[$key])) {
return true;
}
- $this->called[$method] = true;
+ $this->called[$key] = true;
return false;
}