From 5de1a99816436cb8215c0deab708e61c83475379 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 2 May 2015 08:57:14 +0930 Subject: [PATCH] Making a note that we should not use Actor as a singleton --- framework/core/src/Api/Middleware/LoginWithHeader.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/core/src/Api/Middleware/LoginWithHeader.php b/framework/core/src/Api/Middleware/LoginWithHeader.php index d3384b1ab..8f2a3f4d9 100644 --- a/framework/core/src/Api/Middleware/LoginWithHeader.php +++ b/framework/core/src/Api/Middleware/LoginWithHeader.php @@ -10,6 +10,8 @@ class LoginWithHeader 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) { $this->actor = $actor;