|
@@ -5,6 +5,7 @@ namespace Mpociot\ApiDoc;
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
use Mpociot\ApiDoc\Commands\GenerateDocumentation;
|
|
|
use Mpociot\ApiDoc\Commands\RebuildDocumentation;
|
|
|
+use Mpociot\ApiDoc\Matching\RouteMatcher;
|
|
|
use Mpociot\ApiDoc\Matching\RouteMatcherInterface;
|
|
|
|
|
|
class ApiDocGeneratorServiceProvider extends ServiceProvider
|
|
@@ -38,7 +39,7 @@ class ApiDocGeneratorServiceProvider extends ServiceProvider
|
|
|
}
|
|
|
|
|
|
// Bind the route matcher implementation
|
|
|
- $this->app->bind(RouteMatcherInterface::class, $this->app['config']['apidoc']['routeMatcher']);
|
|
|
+ $this->app->bind(RouteMatcherInterface::class, config('apidoc.routeMatcher', RouteMatcher::class));
|
|
|
}
|
|
|
|
|
|
/**
|