| @@ 34-41 (lines=8) @@ | ||
| 31 | return $session; |
|
| 32 | } |
|
| 33 | ||
| 34 | public static function delete($request) { |
|
| 35 | $owner = self::current($request); |
|
| 36 | if(!$owner) { |
|
| 37 | throw new RestUserException("No session found", 404, 404); |
|
| 38 | } |
|
| 39 | $owner->logOut(); |
|
| 40 | return true; |
|
| 41 | } |
|
| 42 | ||
| 43 | ||
| 44 | /** |
|
| @@ 39-46 (lines=8) @@ | ||
| 36 | * @return bool |
|
| 37 | * @throws RestUserException |
|
| 38 | */ |
|
| 39 | public static function delete($request) { |
|
| 40 | $owner = self::current($request); |
|
| 41 | if(!$owner) { |
|
| 42 | throw new RestUserException("No session found", 404, 404); |
|
| 43 | } |
|
| 44 | $owner->logOut(); |
|
| 45 | return true; |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @param \SS_HTTPRequest $request |
|