|
9 | 9 | use Laminas\ModuleManager\Feature\ConfigProviderInterface; |
10 | 10 | use Laminas\ModuleManager\Feature\ControllerProviderInterface; |
11 | 11 | use Laminas\ModuleManager\Feature\DependencyIndicatorInterface; |
| 12 | +use Laminas\ModuleManager\Feature\InitProviderInterface; |
12 | 13 | use Laminas\ModuleManager\ModuleManagerInterface; |
13 | 14 |
|
14 | 15 | use function class_exists; |
|
19 | 20 | class Module implements |
20 | 21 | ControllerProviderInterface, |
21 | 22 | ConfigProviderInterface, |
22 | | - DependencyIndicatorInterface |
| 23 | + DependencyIndicatorInterface, |
| 24 | + InitProviderInterface |
23 | 25 | { |
24 | | - /** |
25 | | - * {@inheritDoc} |
26 | | - */ |
27 | | - public function init(ModuleManagerInterface $manager) |
| 26 | + public function init(ModuleManagerInterface $manager): void |
28 | 27 | { |
29 | 28 | // Initialize the console |
30 | 29 | $manager |
@@ -60,24 +59,30 @@ static function ($event): void { |
60 | 59 |
|
61 | 60 | /** |
62 | 61 | * {@inheritDoc} |
| 62 | + * |
| 63 | + * @return array<array-key,mixed> |
63 | 64 | */ |
64 | | - public function getConfig() |
| 65 | + public function getConfig(): array |
65 | 66 | { |
66 | 67 | return include __DIR__ . '/../config/module.config.php'; |
67 | 68 | } |
68 | 69 |
|
69 | 70 | /** |
70 | 71 | * {@inheritDoc} |
| 72 | + * |
| 73 | + * @return array<array-key,mixed> |
71 | 74 | */ |
72 | | - public function getControllerConfig() |
| 75 | + public function getControllerConfig(): array |
73 | 76 | { |
74 | 77 | return include __DIR__ . '/../config/controllers.config.php'; |
75 | 78 | } |
76 | 79 |
|
77 | 80 | /** |
78 | 81 | * {@inheritDoc} |
| 82 | + * |
| 83 | + * @return array<string> |
79 | 84 | */ |
80 | | - public function getModuleDependencies() |
| 85 | + public function getModuleDependencies(): array |
81 | 86 | { |
82 | 87 | return ['DoctrineModule']; |
83 | 88 | } |
|
0 commit comments