mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +02: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:
@@ -84,6 +84,8 @@ class CoreServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
$this->app->singleton('flarum.localeManager', 'Flarum\Locale\LocaleManager');
|
$this->app->singleton('flarum.localeManager', 'Flarum\Locale\LocaleManager');
|
||||||
|
|
||||||
|
$this->app->singleton('Flarum\Support\Actor');
|
||||||
|
|
||||||
$this->app->bind(
|
$this->app->bind(
|
||||||
'Flarum\Core\Repositories\DiscussionRepositoryInterface',
|
'Flarum\Core\Repositories\DiscussionRepositoryInterface',
|
||||||
'Flarum\Core\Repositories\EloquentDiscussionRepository'
|
'Flarum\Core\Repositories\EloquentDiscussionRepository'
|
||||||
|
Reference in New Issue
Block a user