Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
PluginController | |
0.00% |
0 / 7 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
index | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
detail | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\App\Controllers\Page; |
6 | |
7 | use PeServer\Core\Http\HttpRequest; |
8 | use PeServer\Core\Mvc\Result\IActionResult; |
9 | use PeServer\Core\Mvc\LogicCallMode; |
10 | use PeServer\Core\Mvc\ControllerArgument; |
11 | use PeServer\App\Controllers\Page\PageControllerBase; |
12 | use PeServer\App\Models\Domain\Page\Plugin\PluginIndexLogic; |
13 | use PeServer\App\Models\Domain\Page\Plugin\PluginDetailLogic; |
14 | |
15 | /** |
16 | * [PAGE] プラグインコントローラ。 |
17 | */ |
18 | final class PluginController extends PageControllerBase |
19 | { |
20 | public function __construct(ControllerArgument $argument) |
21 | { |
22 | parent::__construct($argument); |
23 | } |
24 | |
25 | public function index(): IActionResult |
26 | { |
27 | $logic = $this->createLogic(PluginIndexLogic::class); |
28 | $logic->run(LogicCallMode::Initialize); |
29 | |
30 | return $this->view('index', $logic->getViewData()); |
31 | } |
32 | |
33 | public function detail(): IActionResult |
34 | { |
35 | $logic = $this->createLogic(PluginDetailLogic::class); |
36 | $logic->run(LogicCallMode::Initialize); |
37 | |
38 | return $this->view('detail', $logic->getViewData()); |
39 | } |
40 | } |