[Security] Fix AuthenticationServiceException constructor calls

This commit is contained in:
Alexander 2012-07-15 15:31:22 +02:00
parent 42cced4c97
commit 79430b8238

View File

@ -90,7 +90,9 @@ class DaoAuthenticationProvider extends UserAuthenticationProvider
} catch (UsernameNotFoundException $notFound) {
throw $notFound;
} catch (\Exception $repositoryProblem) {
throw new AuthenticationServiceException($repositoryProblem->getMessage(), $token, 0, $repositoryProblem);
$ex = new AuthenticationServiceException($repositoryProblem->getMessage(), 0, $repositoryProblem);
$ex->setExtraInformation($token);
throw $ex;
}
}
}