8000 Fixing minor comments · symfony/symfony-docs@8ee5d07 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ee5d07

Browse files
committed
Fixing minor comments
1 parent 85828a2 commit 8ee5d07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/security/guard-api-key.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ that to authenticate the user. To do this, create a class that extends
4646
return;
4747
}
4848

49-
return [
49+
return array(
5050
'token' => $token,
51-
];
51+
);
5252
}
5353

5454
public function authenticate($credentials, UserProviderInterface $userProvider)
@@ -241,7 +241,7 @@ and your new ``app.token_authenticator`` authenticator:
241241
'pattern' => '^/',
242242
'stateless' => true,
243243
'anonymous' => true,
244-
'simple_preauth' => array(
244+
'guard' => array(
245245
'authenticators' => array(
246246
'app.token_authenticator'
247247
),

0 commit comments

Comments
 (0)
0