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:
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user