/** * Get authenticated user * * @param string $role Role * * @return mixed User for authentication */ public function getAuthenticationUser($role) { return 'ROLE_ADMIN' === $role ? $this->adminUserRepository->findOneBy(['email' => '*****@*****.**']) : $this->customerRepository->find(['email' => '*****@*****.**']); }