aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2012-07-16 14:10:29 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2012-07-16 14:10:29 +0200
commit65ec86fa27a2df815c05b2edff56e52a410d7110 (patch)
tree71852910f42a08eb5cf9bbcef53965bf26ca38aa
parentc8718f19f6596aece4646e8f82e47c0a49204789 (diff)
downloadDns-65ec86fa27a2df815c05b2edff56e52a410d7110.zip
Dns-65ec86fa27a2df815c05b2edff56e52a410d7110.tar.gz
Dns-65ec86fa27a2df815c05b2edff56e52a410d7110.tar.bz2
Use \XCallable instead of $call and $able. Please, see #2215.
-rw-r--r--Library/Dns/Dns.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Dns/Dns.php b/Library/Dns/Dns.php
index 84c4ddf..a8fda63 100644
--- a/Library/Dns/Dns.php
+++ b/Library/Dns/Dns.php
@@ -173,15 +173,14 @@ class Dns implements \Hoa\Core\Event\Listenable {
* Attach a callable to this listenable object.
*
* @access public
- * @param string $listenerId Listener ID.
- * @param mixed $call First callable part.
- * @param mixed $able Second callable part (if needed).
+ * @param string $listenerId Listener ID.
+ * @param \XCallable $callable Callable.
* @return \Hoa\Worker\Backend\Shared
* @throw \Hoa\Core\Exception
*/
- public function on ( $listenerId, $call, $able = '' ) {
+ public function on ( $listenerId, \XCallable $callable ) {
- return $this->_on->attach($listenerId, $call, $able);
+ return $this->_on->attach($listenerId, $callable);
}
/**