amdp3-metaforums/Application/Services/Authentication.php

12 lines
244 B
PHP
Raw Normal View History

2019-11-18 13:33:45 +00:00
<?php
namespace Application\Services;
class Authentication {
public function __construct() {
ServiceContainer::Session();
}
public function isLoggedIn() {
return ServiceContainer::Session()->has('user_id');
}
}