File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 20
20
21
21
class OpenApiServiceProvider extends ServiceProvider
22
22
{
23
- public function boot (): void
24
- {
25
- if ($ this ->app ->runningInConsole ()) {
26
- $ this ->publishes ([
27
- __DIR__ .'/../config/openapi.php ' => config_path ('openapi.php ' ),
28
- ], 'openapi-config ' );
29
- }
30
-
31
- $ this ->loadRoutesFrom (__DIR__ .'/../routes/api.php ' );
32
- }
33
-
34
23
public function register (): void
35
24
{
36
25
$ this ->mergeConfigFrom (
@@ -88,6 +77,17 @@ public function register(): void
88
77
}
89
78
}
90
79
80
+ public function boot (): void
81
+ {
82
+ if ($ this ->app ->runningInConsole ()) {
83
+ $ this ->publishes ([
84
+ __DIR__ .'/../config/openapi.php ' => config_path ('openapi.php ' ),
85
+ ], 'openapi-config ' );
86
+ }
87
+
88
+ $ this ->loadRoutesFrom (__DIR__ .'/../routes/api.php ' );
89
+ }
90
+
91
91
private function getPathsFromConfig (string $ type ): array
92
92
{
93
93
$ directories = config ('openapi.locations. ' .$ type , []);
You can’t perform that action at this time.
0 commit comments