Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function boot() |
||
17 | { |
||
18 | $this->loadViewsFrom(__DIR__.'/../resources/views/', 'apidoc'); |
||
19 | |||
20 | $this->publishes([ |
||
21 | __DIR__.'/../resources/views' => app()->basePath().'/resources/views/vendor/apidoc', |
||
22 | ], 'apidoc-views'); |
||
23 | |||
24 | $this->publishes([ |
||
25 | __DIR__.'/../config/apidoc.php' => app()->basePath().'/config/apidoc.php', |
||
26 | ], 'apidoc-config'); |
||
27 | |||
28 | $this->mergeConfigFrom(__DIR__.'/../config/apidoc.php', 'apidoc'); |
||
29 | |||
30 | $this->bootRoutes(); |
||
31 | |||
32 | if ($this->app->runningInConsole()) { |
||
33 | $this->commands([ |
||
34 | GenerateDocumentation::class, |
||
35 | RebuildDocumentation::class, |
||
36 | ]); |
||
37 | } |
||
38 | } |
||
39 | |||
59 |