1 | <?php |
||
16 | class visual_demo_controller |
||
17 | { |
||
18 | /** @var \phpbb\auth\auth */ |
||
19 | protected $auth; |
||
20 | |||
21 | /** @var \phpbb\config\config */ |
||
22 | protected $config; |
||
23 | |||
24 | /** @var \phpbb\request\request */ |
||
25 | protected $request; |
||
26 | |||
27 | /** @var \phpbb\user */ |
||
28 | protected $user; |
||
29 | |||
30 | /** @var string */ |
||
31 | protected $root_path; |
||
32 | |||
33 | /** @var string */ |
||
34 | protected $php_ext; |
||
35 | |||
36 | /** |
||
37 | * Constructor |
||
38 | * |
||
39 | * @param \phpbb\auth\auth $auth |
||
40 | * @param \phpbb\config\config $config |
||
41 | * @param \phpbb\request\request $request |
||
42 | * @param \phpbb\user $user |
||
43 | * @param string $root_path |
||
44 | * @param string $php_ext |
||
45 | */ |
||
46 | public function __construct(\phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\request\request $request, \phpbb\user $user, $root_path, $php_ext) |
||
55 | |||
56 | /** |
||
57 | * Visual demo handler |
||
58 | * |
||
59 | * When called by an admin, add or remove the visual demo cookie |
||
60 | * and direct them to an appropriate forum page to view. |
||
61 | * |
||
62 | * @param string $action enable|disable |
||
63 | * @return \Symfony\Component\HttpFoundation\JsonResponse |
||
64 | * @throws \phpbb\exception\http_exception An http exception |
||
65 | */ |
||
66 | public function handle($action) |
||
102 | } |
||
103 |