1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-09-10 17:31:58 +03:00

Started refactor of URL system to better extend Laravel

This commit is contained in:
Dan Brown
2019-07-21 21:32:08 +01:00
parent 1e7df28238
commit 30da105812
4 changed files with 66 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ use BookStack\Entities\Chapter;
use BookStack\Entities\Page;
use BookStack\Settings\Setting;
use BookStack\Settings\SettingService;
use BookStack\UrlGenerator;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
@@ -72,5 +73,10 @@ class AppServiceProvider extends ServiceProvider
$this->app->singleton(SettingService::class, function ($app) {
return new SettingService($app->make(Setting::class), $app->make('Illuminate\Contracts\Cache\Repository'));
});
$this->app->bind(
\Illuminate\Contracts\Routing\UrlGenerator::class,
UrlGenerator::class
);
}
}