*/ class UpdateLastOnline implements MiddlewareInterface { /** * Update the last online information for the active user. */ public function run() { if (CurrentSession::$user->id !== 0) { CurrentSession::$user->updateOnline(); } } }