Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 57.14% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class AbstractController extends BaseAbstractController |
||
16 | { |
||
17 | public static function getSubscribedServices(): array |
||
23 | ]); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Shorthand method to create named forms. |
||
28 | */ |
||
29 | 12 | protected function createNamedForm(string $name, string $type, $data = null, array $options = []): FormInterface |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * Shorthand method to fetch the authenticated user, it also allows to forget about testing the user class |
||
36 | * everywhere in the child controllers. |
||
37 | */ |
||
38 | 16 | protected function getCurrentUser(): User |
|
43 |