Fix LoginWithCookie middleware being ineffective

Flarum\Support\Actor needs to be a singleton. There is a comment in
LoginWithHeader - is there a better approach to the whole Actor thing?
This commit is contained in:
Toby Zerner 2015-06-17 12:47:49 +09:30
parent 2db36916fb
commit 91d9a4ebd4

View File

@ -84,6 +84,8 @@ class CoreServiceProvider extends ServiceProvider
$this->app->singleton('flarum.localeManager', 'Flarum\Locale\LocaleManager');
$this->app->singleton('Flarum\Support\Actor');
$this->app->bind(
'Flarum\Core\Repositories\DiscussionRepositoryInterface',
'Flarum\Core\Repositories\EloquentDiscussionRepository'