mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:11:40 +08:00
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:
parent
2db36916fb
commit
91d9a4ebd4
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user