You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
GeekQu_sspanel/app/Services/Auth.php

33 lines
495 B
PHTML

9 years ago
<?php
namespace App\Services;
class Auth
{
protected $driver;
public function __construct()
{
}
private static function getDriver()
{
return Factory::createAuth();
}
public static function login($uid, $time)
{
self::getDriver()->login($uid, $time);
}
public static function getUser()
{
return self::getDriver()->getUser();
}
public static function logout()
{
self::getDriver()->logout();
}
}