Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
PluginController
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 index
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
 detail
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3declare(strict_types=1);
4
5namespace PeServer\App\Controllers\Page;
6
7use PeServer\Core\Http\HttpRequest;
8use PeServer\Core\Mvc\Result\IActionResult;
9use PeServer\Core\Mvc\LogicCallMode;
10use PeServer\Core\Mvc\ControllerArgument;
11use PeServer\App\Controllers\Page\PageControllerBase;
12use PeServer\App\Models\Domain\Page\Plugin\PluginIndexLogic;
13use PeServer\App\Models\Domain\Page\Plugin\PluginDetailLogic;
14
15/**
16 * [PAGE] プラグインコントローラ。
17 */
18final 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}