Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 6 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
17 | class ShipController extends Controller implements ShipControllerInterface |
||
18 | { |
||
19 | public function shipInit(): void |
||
20 | { |
||
21 | if (Rudra::config()->get("environment") === "development") { |
||
22 | |||
23 | Rudra::get("debugbar")['time']->stopMeasure('routing'); |
||
24 | Rudra::get("debugbar")['time']->stopMeasure('application'); |
||
25 | |||
26 | data([ |
||
27 | "debugbar" => Rudra::get("debugbar")->getJavascriptRenderer(), |
||
28 | ]); |
||
29 | } |
||
30 | |||
31 | $this->eventRegistration(); |
||
32 | } |
||
33 | |||
34 | public function eventRegistration(): void |
||
38 | } |
||
39 | } |
||
40 |