Logfiles for sessions

This commit is contained in:
Frank
2026-01-08 18:14:56 +01:00
parent a475c1a268
commit 50d7ce745c
8 changed files with 277 additions and 2 deletions

View File

@@ -32,4 +32,16 @@ class UserRepository extends ServiceEntityRepository implements PasswordUpgrader
$this->getEntityManager()->persist($user);
$this->getEntityManager()->flush();
}
/**
* @return User[]
*/
public function findByRole(string $role): array
{
return $this->createQueryBuilder('u')
->andWhere('u.roles LIKE :role')
->setParameter('role', '%"' . $role . '"%')
->getQuery()
->getResult();
}
}