コード例 #1
0
ファイル: EnvironmentBuilder.php プロジェクト: axelvnk/bamboo
 /**
  * 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' => '*****@*****.**']);
 }