Permalink
Browse files

minor #3481 Fix code block (minimise horizontal scrolling), typo in y…

…aml (ifdattic)

This PR was merged into the 2.3 branch.

Discussion
----------

Fix code block (minimise horizontal scrolling), typo in yaml

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |

Commits
-------

46bbf7f Fix code block (minimise horizontal scrolling), typo in yaml
  • Loading branch information...
weaverryan committed Feb 1, 2014
2 parents c73799b + 46bbf7f commit 3250aba13ccf8662aa8e38cb624b3adeab0944bc
Showing with 7 additions and 3 deletions.
  1. +7 −3 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:

0 comments on commit 3250aba

Please sign in to comment.