Skip to content

Commit 3250aba

Browse files
committed
minor symfony#3481 Fix code block (minimise horizontal scrolling), typo in yaml (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
2 parents c73799b + 46bbf7f commit 3250aba

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cookbook/security/custom_provider.rst

+7-3
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,17 @@ Here's an example of how this might look::
144144
return new WebserviceUser($username, $password, $salt, $roles);
145145
}
146146

147-
throw new UsernameNotFoundException(sprintf('Username "%s" does not exist.', $username));
147+
throw new UsernameNotFoundException(
148+
sprintf('Username "%s" does not exist.', $username)
149+
);
148150
}
149151

150152
public function refreshUser(UserInterface $user)
151153
{
152154
if (!$user instanceof WebserviceUser) {
153-
throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', get_class($user)));
155+
throw new UnsupportedUserException(
156+
sprintf('Instances of "%s" are not supported.', get_class($user))
157+
);
154158
}
155159

156160
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
221225

222226
.. code-block:: yaml
223227
224-
// app/config/security.yml
228+
# app/config/security.yml
225229
security:
226230
providers:
227231
webservice:

0 commit comments

Comments
 (0)