14
14
use Zonneplan \ModuleLoader \Support \Contracts \ModuleRepositoryContract ;
15
15
16
16
/**
17
- * Class ModuleLoader
17
+ * Class ModuleLoader.
18
18
*
19
19
* The module loader acts as an opinionated ServiceProvider and will automatically try to load migrations,
20
20
* views, etc. from a predefined folder structure.
21
- *
22
- * @package Zonneplan\LaravelModuleLoader
23
21
*/
24
22
abstract class Module extends ServiceProvider implements ModuleContract
25
23
{
@@ -41,8 +39,9 @@ abstract class Module extends ServiceProvider implements ModuleContract
41
39
/**
42
40
* Register the module.
43
41
*
44
- * @return void
45
42
* @throws ReflectionException
43
+ *
44
+ * @return void
46
45
*/
47
46
public function register (): void
48
47
{
@@ -55,8 +54,9 @@ public function register(): void
55
54
/**
56
55
* Boot the module.
57
56
*
58
- * @return void
59
57
* @throws ReflectionException
58
+ *
59
+ * @return void
60
60
*/
61
61
public function boot (): void
62
62
{
@@ -84,8 +84,9 @@ protected function loadCommandSchedule(): void
84
84
}
85
85
86
86
/**
87
- * @return void
88
87
* @throws ReflectionException
88
+ *
89
+ * @return void
89
90
*/
90
91
protected function loadMigrations (): void
91
92
{
@@ -97,8 +98,9 @@ protected function loadMigrations(): void
97
98
}
98
99
99
100
/**
100
- * @return void
101
101
* @throws ReflectionException
102
+ *
103
+ * @return void
102
104
*/
103
105
protected function loadViews (): void
104
106
{
@@ -110,8 +112,9 @@ protected function loadViews(): void
110
112
}
111
113
112
114
/**
113
- * @return void
114
115
* @throws ReflectionException
116
+ *
117
+ * @return void
115
118
*/
116
119
protected function loadTranslations (): void
117
120
{
@@ -123,8 +126,9 @@ protected function loadTranslations(): void
123
126
}
124
127
125
128
/**
126
- * @return void
127
129
* @throws ReflectionException
130
+ *
131
+ * @return void
128
132
*/
129
133
protected function loadConfigs (): void
130
134
{
@@ -169,8 +173,9 @@ protected function registerListeners(): void
169
173
}
170
174
171
175
/**
172
- * @return string
173
176
* @throws ReflectionException
177
+ *
178
+ * @return string
174
179
*/
175
180
protected function getModulePath (): string
176
181
{
@@ -203,7 +208,7 @@ protected function scheduleCommands(Schedule $schedule): void
203
208
}
204
209
205
210
/**
206
- * Registers the commands of the schedule
211
+ * Registers the commands of the schedule.
207
212
*
208
213
* @return void
209
214
*/
@@ -213,7 +218,7 @@ private function registerCommands(): void
213
218
}
214
219
215
220
/**
216
- * Registers middleware
221
+ * Registers middleware.
217
222
*
218
223
* @return void
219
224
*/
@@ -228,14 +233,14 @@ private function registerMiddleware(): void
228
233
}
229
234
230
235
/**
231
- * Registers factories
236
+ * Registers factories.
232
237
*
233
238
* @return void
234
239
*/
235
240
private function registerFactories (): void
236
241
{
237
242
$ this ->app ->afterResolving (Factory::class, function (Factory $ faker ) {
238
- $ faker ->load ($ this ->getModulePath () . '/Database/Factories ' );
243
+ $ faker ->load ($ this ->getModulePath (). '/Database/Factories ' );
239
244
});
240
245
}
241
246
0 commit comments