Skip to content

Commit a8d444e

Browse files
author
Johnny Robeson
committed
Fix UsernameNotFoundException example (take 2)
here is the fix properly applied to master
1 parent 823cef3 commit a8d444e

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)