Skip to content

Commit

Permalink
minor #3481 Fix code block (minimise horizontal scrolling), typo in y…
Browse files Browse the repository at this point in the history
…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 3250aba
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 3250aba

Please sign in to comment.