Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | class DebugHandler |
||
31 | { |
||
32 | /** |
||
33 | * Create a new Debug handler for debug mode. |
||
34 | * |
||
35 | * @return \Syscodes\Components\Debug\Handlers\PleasingPageHandler |
||
36 | */ |
||
37 | public function initDebug() |
||
38 | { |
||
39 | return take(new PleasingPageHandler, fn ($handler) => $this->registerEditor($handler)); |
||
|
|||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Register the editor with the handler. |
||
44 | * |
||
45 | * @param \Syscodes\Components\Debug\Handlers\PleasingPageHandler $handler |
||
46 | * |
||
47 | * @return static |
||
48 | */ |
||
49 | protected function registerEditor($handler): static |
||
56 | } |
||
57 | } |