1: | <?php
2: | namespace Opencart\Admin\Controller\Common;
3: | /**
4: | * Class Logout
5: | *
6: | * @package Opencart\Admin\Controller\Common
7: | */
8: | class Logout extends \Opencart\System\Engine\Controller {
9: | /**
10: | * Index
11: | *
12: | * @return void
13: | */
14: | public function index(): void {
15: | $this->user->logout();
16: |
17: | unset($this->session->data['user_token']);
18: |
19: | $this->response->redirect($this->url->link('common/login', '', true));
20: | }
21: | }
22: |

OpenCart API API documentation generated by ApiGen dev-master