1
0
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:
Franz Liedke
2015-05-27 23:58:43 +02:00
parent 7ab3437136
commit 9526dbf210
3 changed files with 43 additions and 0 deletions

View File

@@ -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'