|
|
|
@ -81,7 +81,7 @@ class Session implements IUserSession, Emitter { |
|
|
|
* @param string $method |
|
|
|
* @param callable $callback |
|
|
|
*/ |
|
|
|
public function listen($scope, $method, $callback) { |
|
|
|
public function listen($scope, $method, callable $callback) { |
|
|
|
$this->manager->listen($scope, $method, $callback); |
|
|
|
} |
|
|
|
|
|
|
|
@ -90,7 +90,7 @@ class Session implements IUserSession, Emitter { |
|
|
|
* @param string $method optional |
|
|
|
* @param callable $callback optional |
|
|
|
*/ |
|
|
|
public function removeListener($scope = null, $method = null, $callback = null) { |
|
|
|
public function removeListener($scope = null, $method = null, callable $callback = null) { |
|
|
|
$this->manager->removeListener($scope, $method, $callback); |
|
|
|
} |
|
|
|
|
|
|
|
|