Skip to content

Commit e6ba8e3

Browse files
committed
Merge pull request #2127 from jrobeson/patch-2
Fix UsernameNotFoundException example (take 2)
2 parents 21178b1 + a8d444e commit e6ba8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/security/entity_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ The code below shows the implementation of the
384384
// if there is no record matching the criteria.
385385
$user = $q->getSingleResult();
386386
} catch (NoResultException $e) {
387-
throw new UsernameNotFoundException(sprintf('Unable to find an active admin AcmeUserBundle:User object identified by "%s".', $username), null, 0, $e);
387+
throw new UsernameNotFoundException(sprintf('Unable to find an active admin AcmeUserBundle:User object identified by "%s".', $username), 0, $e);
388388
}
389389
390390
return $user;

0 commit comments

Comments
 (0)