From 46bbf7f1d97236edbe5cb4e6204e5bb892b46d42 Mon Sep 17 00:00:00 2001 From: Andrew M Date: Wed, 15 Jan 2014 20:41:23 +0200 Subject: [PATCH] Fix code block (minimise horizontal scrolling), typo in yaml --- cookbook/security/custom_provider.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cookbook/security/custom_provider.rst b/cookbook/security/custom_provider.rst index 3d52a4e01f2..ef372b1ff08 100644 --- a/cookbook/security/custom_provider.rst +++ b/cookbook/security/custom_provider.rst @@ -144,13 +144,17 @@ Here's an example of how this might look:: return new WebserviceUser($username, $password, $salt, $roles); } - throw new UsernameNotFoundException(sprintf('Username "%s" does not exist.', $username)); + throw new UsernameNotFoundException( + sprintf('Username "%s" does not exist.', $username) + ); } public function refreshUser(UserInterface $user) { if (!$user instanceof WebserviceUser) { - throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', get_class($user))); + throw new UnsupportedUserException( + sprintf('Instances of "%s" are not supported.', get_class($user)) + ); } return $this->loadUserByUsername($user->getUsername()); @@ -221,7 +225,7 @@ to the list of providers in the "security" section. Choose a name for the user p .. code-block:: yaml - // app/config/security.yml + # app/config/security.yml security: providers: webservice: