Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | trait ServicesTrait |
||
24 | { |
||
25 | // Public Static Methods |
||
26 | // ========================================================================= |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public static function config(): array |
||
32 | { |
||
33 | return [ |
||
34 | 'components' => [ |
||
35 | 'typogrify' => TypogrifyService::class, |
||
36 | ], |
||
37 | ]; |
||
38 | } |
||
39 | |||
40 | // Public Methods |
||
41 | // ========================================================================= |
||
42 | |||
43 | /** |
||
44 | * Returns the typogrify service |
||
45 | * |
||
46 | * @return TypogrifyService The typogrify service |
||
47 | * @throws InvalidConfigException |
||
48 | */ |
||
49 | public function getTypogrify(): TypogrifyService |
||
52 | } |
||
53 | } |
||
54 |