Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
25 | class ErrorController extends AppController |
||
26 | { |
||
27 | /** |
||
28 | * beforeFilter callback. |
||
29 | * |
||
30 | * @param \Cake\Event\EventInterface $event Event. |
||
31 | * @return \Cake\Http\Response|null |
||
32 | * @codeCoverageIgnore |
||
33 | */ |
||
34 | public function beforeFilter(EventInterface $event): ?Response |
||
35 | { |
||
36 | return null; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * beforeRender callback. |
||
41 | * |
||
42 | * @param \Cake\Event\EventInterface $event Event. |
||
43 | * @return \Cake\Http\Response|null |
||
44 | * @codeCoverageIgnore |
||
45 | */ |
||
46 | public function beforeRender(EventInterface $event): ?Response |
||
47 | { |
||
48 | $this->viewBuilder()->setClassName('App\View\AppView'); |
||
49 | $this->viewBuilder()->setTemplatePath('Error'); |
||
50 | |||
51 | return null; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * afterFilter callback. |
||
56 | * |
||
57 | * @param \Cake\Event\EventInterface $event Event. |
||
58 | * @return void |
||
59 | * @codeCoverageIgnore |
||
60 | */ |
||
61 | public function afterFilter(EventInterface $event): void |
||
63 | } |
||
64 | } |
||
65 |