public function __construct(EntityManager $em, UserService $userService) { $this->em = $em; $this->userService = $userService; }