Conditions | 2 |
Paths | 2 |
Total Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function boot() |
||
19 | { |
||
20 | $this->loadViewsFrom(__DIR__ . '/../resources/views/', 'apidoc'); |
||
21 | |||
22 | $this->publishes([ |
||
23 | __DIR__ . '/../resources/views' => $this->app->basePath('resources/views/vendor/apidoc'), |
||
24 | ], 'apidoc-views'); |
||
25 | |||
26 | $this->publishes([ |
||
27 | __DIR__ . '/../config/apidoc.php' => $this->app->configPath('apidoc.php'), |
||
28 | ], 'apidoc-config'); |
||
29 | |||
30 | $this->mergeConfigFrom(__DIR__ . '/../config/apidoc.php', 'apidoc'); |
||
31 | |||
32 | $this->bootRoutes(); |
||
33 | |||
34 | if ($this->app->runningInConsole()) { |
||
35 | $this->commands([ |
||
36 | GenerateDocumentation::class, |
||
37 | RebuildDocumentation::class, |
||
38 | ]); |
||
39 | } |
||
40 | |||
41 | // Bind the route matcher implementation |
||
42 | $this->app->bind(RouteMatcherInterface::class, config('apidoc.routeMatcher', RouteMatcher::class)); |
||
43 | } |
||
44 | |||
60 |