18 lines
370 B
PHP
18 lines
370 B
PHP
<?php
|
|
class LogoutController extends Controller {
|
|
const PATH = '/logout';
|
|
|
|
public function validations() {
|
|
return [
|
|
'permission' => 'any',
|
|
'requestData' => []
|
|
];
|
|
}
|
|
|
|
public function handler() {
|
|
$session = Session::getInstance();
|
|
$session->closeSession();
|
|
|
|
Response::respondSuccess();
|
|
}
|
|
} |