Elcodi\Bridge\VisithorBridgeBundle\Environment\EnvironmentBuilder::getAuthenticationUser PHP Method

getAuthenticationUser() public method

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