2
0
Fork 0
forked from flashii/eeprom

Renamed AuthInterface to IAuth.

This commit is contained in:
flash 2022-07-07 15:55:39 +00:00
parent e107ae152d
commit 668c1f3b50
4 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
dsn = "mariadb://user:password@:unix:/eeprom?socket=/var/run/mysqld/mysqld.sock&charset=utf8mb4&init=SET SESSION time_zone = '+00:00', sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'"
[Auth]
; Must be implementations of \EEPROM\Auth\AuthInterface
; Must be implementations of \EEPROM\Auth\IAuth
clients[] = \EEPROM\Auth\MisuzuAuth
clients[] = \EEPROM\Auth\SockChatAuth

View file

@ -1,7 +1,7 @@
<?php
namespace EEPROM\Auth;
interface AuthInterface {
interface IAuth {
public function getName(): string;
public function verifyToken(string $token): int;
}

View file

@ -4,7 +4,7 @@ namespace EEPROM\Auth;
use EEPROM\Config;
use Index\Serialisation\Serialiser;
class MisuzuAuth implements AuthInterface {
class MisuzuAuth implements IAuth {
private $endPoint = '';
private $secretKey = '';

View file

@ -4,7 +4,7 @@ namespace EEPROM\Auth;
use EEPROM\Config;
use Index\Serialisation\Serialiser;
class NabuccoAuth implements AuthInterface {
class NabuccoAuth implements IAuth {
private $secretKey = '';
public function __construct() {