forked from flashii/eeprom
Renamed AuthInterface to IAuth.
This commit is contained in:
parent
e107ae152d
commit
668c1f3b50
4 changed files with 4 additions and 4 deletions
|
@ -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'"
|
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]
|
[Auth]
|
||||||
; Must be implementations of \EEPROM\Auth\AuthInterface
|
; Must be implementations of \EEPROM\Auth\IAuth
|
||||||
clients[] = \EEPROM\Auth\MisuzuAuth
|
clients[] = \EEPROM\Auth\MisuzuAuth
|
||||||
clients[] = \EEPROM\Auth\SockChatAuth
|
clients[] = \EEPROM\Auth\SockChatAuth
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
namespace EEPROM\Auth;
|
namespace EEPROM\Auth;
|
||||||
|
|
||||||
interface AuthInterface {
|
interface IAuth {
|
||||||
public function getName(): string;
|
public function getName(): string;
|
||||||
public function verifyToken(string $token): int;
|
public function verifyToken(string $token): int;
|
||||||
}
|
}
|
|
@ -4,7 +4,7 @@ namespace EEPROM\Auth;
|
||||||
use EEPROM\Config;
|
use EEPROM\Config;
|
||||||
use Index\Serialisation\Serialiser;
|
use Index\Serialisation\Serialiser;
|
||||||
|
|
||||||
class MisuzuAuth implements AuthInterface {
|
class MisuzuAuth implements IAuth {
|
||||||
private $endPoint = '';
|
private $endPoint = '';
|
||||||
private $secretKey = '';
|
private $secretKey = '';
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace EEPROM\Auth;
|
||||||
use EEPROM\Config;
|
use EEPROM\Config;
|
||||||
use Index\Serialisation\Serialiser;
|
use Index\Serialisation\Serialiser;
|
||||||
|
|
||||||
class NabuccoAuth implements AuthInterface {
|
class NabuccoAuth implements IAuth {
|
||||||
private $secretKey = '';
|
private $secretKey = '';
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
|
Loading…
Reference in a new issue