amdp3-metaforums/Application/Services/Authentication.php
2019-11-19 02:18:37 +07:00

12 lines
244 B
PHP

<?php
namespace Application\Services;
class Authentication {
public function __construct() {
ServiceContainer::Session();
}
public function isLoggedIn() {
return ServiceContainer::Session()->has('user_id');
}
}