mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
Add the ability to log users and their shared subdomains
This commit is contained in:
25
app/Server/LoggerRepository/NullLogger.php
Normal file
25
app/Server/LoggerRepository/NullLogger.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Server\LoggerRepository;
|
||||
|
||||
use App\Contracts\LoggerRepository;
|
||||
use Clue\React\SQLite\DatabaseInterface;
|
||||
use React\Promise\PromiseInterface;
|
||||
|
||||
class NullLogger implements LoggerRepository
|
||||
{
|
||||
public function logSubdomain($authToken, $subdomain)
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
public function getLogsBySubdomain($subdomain): PromiseInterface
|
||||
{
|
||||
return \React\Promise\resolve([]);
|
||||
}
|
||||
|
||||
public function getLogs(): PromiseInterface
|
||||
{
|
||||
return \React\Promise\resolve([]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user