PartKeepr\AuthBundle\Services\UserService::getUserCount PHP Method

getUserCount() public method

Returns the number of users present in the system.
public getUserCount ( ) : mixed
return mixed
    public function getUserCount()
    {
        $dql = 'SELECT COUNT(u) FROM PartKeepr\\AuthBundle\\Entity\\FOSUser u WHERE u.enabled = 1';
        $query = $this->entityManager->createQuery($dql);
        return $query->getSingleScalarResult();
    }