Skip to content

Commit 3721b9c

Browse files
Update guard_authentication.rst
Renaming more occurrences of `apiKey` to `apiToken`, thanks to symfony#13418 (comment)
1 parent 70c4903 commit 3721b9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

security/guard_authentication.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Don't forget to generate and execute the migration:
4949
$ php bin/console make:migration
5050
$ php bin/console doctrine:migrations:migrate
5151
52-
Next, configure your "user provider" to use this new `apiKey` property:
52+
Next, configure your "user provider" to use this new `apiToken` property:
5353

5454
.. configuration-block::
5555

@@ -81,7 +81,7 @@ Next, configure your "user provider" to use this new `apiKey` property:
8181
<!-- ... -->
8282
8383
<provider name="your_db_provider">
84-
<entity class="App\Entity\User" property="apiKey"/>
84+
<entity class="App\Entity\User" property="apiToken"/>
8585
</provider>
8686
8787
<!-- ... -->
@@ -98,7 +98,7 @@ Next, configure your "user provider" to use this new `apiKey` property:
9898
'your_db_provider' => [
9999
'entity' => [
100100
'class' => 'App\Entity\User',
101-
'property' => 'apiKey',
101+
'property' => 'apiToken',
102102
],
103103
],
104104
],

0 commit comments

Comments
 (0)