mirror of
https://github.com/flarum/core.git
synced 2025-07-19 07:41:22 +02:00
Revamp routing
All routes are now stored in a RouteCollection, which is then used for dispatching by the (reusable) RouterMiddleware. This change also entails moving all routes to the service providers. This may be changed again later, and is done for convenience reasons right now.
This commit is contained in:
@@ -70,11 +70,6 @@ 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