Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3250aba

Browse files
committed
minorsymfony#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 parentsc73799b +46bbf7f commit3250aba

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎cookbook/security/custom_provider.rst

Lines changed: 7 additions & 3 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp