@@ -10,6 +10,9 @@ |
||
10 | 10 | $_SESSION[$key] = $value; |
11 | 11 | } |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $key |
|
15 | + */ |
|
13 | 16 | public static function get($key){ |
14 | 17 | return (isset($_SESSION[$key]) ? $_SESSION[$key] : null); |
15 | 18 | } |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use ChatApp\Reply; |
10 | 10 | use ChatApp\Session; |
11 | 11 | use ChatApp\SideBar; |
12 | - |
|
13 | 12 | use Dotenv\Dotenv; |
14 | 13 | $dotenv = new Dotenv(dirname(__DIR__)); |
15 | 14 | $dotenv->load(); |
@@ -24,6 +24,10 @@ |
||
24 | 24 | $this->conversation = new Conversation(); |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $msg |
|
29 | + * @param boolean $para |
|
30 | + */ |
|
27 | 31 | public function receiverLoad($msg, $para) |
28 | 32 | { |
29 | 33 | $msg = json_decode($msg); |