public function getAuthenticationUser($role) { return 'ROLE_ADMIN' === $role ? $this->adminUserRepository->findOneBy(['email' => '[email protected]']) : $this->customerRepository->find(['email' => '[email protected]']); }