1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 00:47:00 +02:00

Refactor CoreServiceProvider

A good start I think, but still some work to do. If we go ahead with
https://github.com/flarum/core/issues/132#issuecomment-117507974 (which
I am in favour of), we can extract the entity-related stuff into some
smaller service providers (e.g. discussion repo, an event listener,
permissions, and gambits stuff could all go in
Flarum\Core\Discussions\DiscussionsServiceProvider).
This commit is contained in:
Toby Zerner
2015-07-01 22:34:11 +09:30
parent d414ee33ed
commit 56932604db
15 changed files with 239 additions and 217 deletions

View File

@@ -22,6 +22,8 @@ class ApiServiceProvider extends ServiceProvider
return new UrlGenerator($this->app->make('flarum.api.routes'));
}
);
$this->app->register('Flarum\Locale\LocaleServiceProvider');
}
/**