From 8156cf4417dcaf657251b67e558eb3e979167b65 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Sun, 13 Jan 2013 11:10:55 -0500 Subject: [PATCH] Fix UsernameNotFoundException example `Exception::__construct` has 3 parameters not 4 --- cookbook/security/entity_provider.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/security/entity_provider.rst b/cookbook/security/entity_provider.rst index 2b5f7a132a8..05df8a39f23 100644 --- a/cookbook/security/entity_provider.rst +++ b/cookbook/security/entity_provider.rst @@ -377,7 +377,7 @@ The code below shows the implementation of the // if there is no record matching the criteria. $user = $q->getSingleResult(); } catch (NoResultException $e) { - throw new UsernameNotFoundException(sprintf('Unable to find an active admin AcmeUserBundle:User object identified by "%s".', $username), null, 0, $e); + throw new UsernameNotFoundException(sprintf('Unable to find an active admin AcmeUserBundle:User object identified by "%s".', $username), 0, $e); } return $user;