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