mirror of
https://github.com/flarum/core.git
synced 2025-08-02 22:47:33 +02:00
Making a note that we should not use Actor as a singleton
This commit is contained in:
@@ -10,6 +10,8 @@ class LoginWithHeader
|
|||||||
|
|
||||||
protected $prefix = 'Token ';
|
protected $prefix = 'Token ';
|
||||||
|
|
||||||
|
// @todo rather than using a singleton, we should have our own HTTP
|
||||||
|
// Request class and store the actor on that? somehow?
|
||||||
public function __construct(Actor $actor)
|
public function __construct(Actor $actor)
|
||||||
{
|
{
|
||||||
$this->actor = $actor;
|
$this->actor = $actor;
|
||||||
|
Reference in New Issue
Block a user