Elgg  Version master
CleanupPersistentLoginHandler.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Users;
4 
11 
19  public function __invoke(\Elgg\Event $event) {
20  $time = (int) $event->getParam('time', time());
21  _elgg_services()->persistentLogin->removeExpiredTokens($time);
22  }
23 }
if(!$annotation instanceof ElggAnnotation) $time
Definition: time.php:20
__invoke(\Elgg\Event $event)
Cleanup expired persistent login tokens from the database.
_elgg_services()
Get the global service provider.
Definition: elgglib.php:351
Models an event passed to event handlers.
Definition: Event.php:11