From bfce91b5b1b16ee98d4db29b6486cd3d5ee63261 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Mon, 18 May 2015 10:06:17 -0400 Subject: [PATCH] Fixing minor comments --- cookbook/security/guard-api-key.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbook/security/guard-api-key.rst b/cookbook/security/guard-api-key.rst index 25fc83ba11b..abf4967769d 100644 --- a/cookbook/security/guard-api-key.rst +++ b/cookbook/security/guard-api-key.rst @@ -46,9 +46,9 @@ that to authenticate the user. To do this, create a class that extends return; } - return [ + return array( 'token' => $token, - ]; + ); } public function authenticate($credentials, UserProviderInterface $userProvider) @@ -241,7 +241,7 @@ and your new ``app.token_authenticator`` authenticator: 'pattern' => '^/', 'stateless' => true, 'anonymous' => true, - 'simple_preauth' => array( + 'guard' => array( 'authenticators' => array( 'app.token_authenticator' ),