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.
32 lines
486 B
PHP
32 lines
486 B
PHP
<?php
|
|
|
|
|
|
namespace App\Services\Auth;
|
|
|
|
use App\Services\Factory;
|
|
|
|
class Token extends Base
|
|
{
|
|
protected $storage;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->storage = Factory::createTokenStorage();
|
|
}
|
|
|
|
public function login($uid, $time)
|
|
{
|
|
// TODO: Implement getUser() method.
|
|
}
|
|
|
|
public function logout()
|
|
{
|
|
// TODO: Implement logout() method.
|
|
}
|
|
|
|
public function getUser()
|
|
{
|
|
$token = Cookie::get('token');
|
|
}
|
|
}
|