This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Nous vérifions que l'utilisateur est bien du bon type pour ne pas appeler getLastActivity() sur un objet autre objet User | |
if ($user instanceof User && $user->getLastActivity() < $delay) { | |
$user->setActiveNow(); | |
$this->em->flush($user); | |
} | |
if ($user instanceof User && $user->getLastActivity() < $delay) { | |
$user->setActiveNow(); |