Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix code block (minimise horizontal scrolling), typo in yaml
  • Loading branch information
ifdattic committed Jan 15, 2014
commit 46bbf7f1d97236edbe5cb4e6204e5bb892b46d42
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