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