Skip to content

Commit

Permalink
Fix code block (minimise horizontal scrolling), typo in yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ifdattic committed Jan 15, 2014
1 parent 42c80d1 commit 46bbf7f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cookbook/security/custom_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 46bbf7f

Please sign in to comment.