Add the ability to log users and their shared subdomains

This commit is contained in:
Marcel Pociot committed 2021-11-10 16:43:23 +01:00
1 parent 97993318e7
commit b9b07c9664
10 files changed
+231 -2

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ use App\Server\Connections\ControlConnection;
use App\Server\Connections\HttpConnection;
use Ratchet\ConnectionInterface;
interface ConnectionManager
interface connectionmanager
{
public function storeConnection(string $host, ?string $subdomain, ?string $serverHost, ConnectionInterface $connection): ControlConnection;
+14
View File
@@ -0,0 +1,14 @@
<?php
namespace App\Contracts;
use React\Promise\PromiseInterface;
interface LoggerRepository
{
public function logSubdomain($authToken, $subdomain);
public function getLogs(): PromiseInterface;
public function getLogsBySubdomain($subdomain): PromiseInterface;
}