Skip to content

Commit bfce91b

Browse files
committed
Fixing minor comments
1 parent 9e411fe commit bfce91b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/security/guard-api-key.rst

+3-3
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)