mirror of
https://github.com/flarum/core.git
synced 2025-07-31 13:40:20 +02:00
Create URL generator interface.
Also bind a default implementation to the container.
This commit is contained in:
@@ -72,6 +72,11 @@ class CoreServiceProvider extends ServiceProvider
|
||||
|
||||
$this->app->singleton('flarum.formatter', 'Flarum\Core\Formatter\FormatterManager');
|
||||
|
||||
$this->app->bind(
|
||||
'Flarum\Http\UrlGeneratorInterface',
|
||||
'Flarum\Http\UrlGenerator'
|
||||
);
|
||||
|
||||
$this->app->bind(
|
||||
'Flarum\Core\Repositories\DiscussionRepositoryInterface',
|
||||
'Flarum\Core\Repositories\EloquentDiscussionRepository'
|
||||
|
Reference in New Issue
Block a user